Complete.Org: Mailing Lists: Archives: offlineimap: October 2006:
Re: Sync only specific files/folders?
Home

Re: Sync only specific files/folders?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "John Goerzen" <jgoerzen@xxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: Sync only specific files/folders?
From: "Sean Hammond" <sean.hammond@xxxxxxxxx>
Date: Fri, 13 Oct 2006 01:34:52 +0100

Yeah, I found the examples. Thanks.

Had a bit of an accident though. Try this (actually don't try this):

1. Sync an imap account for the first time with offlineimap. It starts
syncing all your folders cause you didn't specify a filter yet. Kill
it half way through when you realise.

2. Now add some filters in the config file.

3. Go into the local imap folders and delete everything, all the
unwanted stuff that was downloaded last time you ran offlineimap.

4. Run offlineimap again. The filters work, but oops, instead of
downloading everything to the local machine, it's deleting everything
from the remote machine! It's syncing in the wrong direction! Argh!

I lost my entire sent-mail folder. Luckily I stopped it before it got
to my inbox, and I have the sent-mail backed up elsewhere.

So.. designed to prevent mail loss at all costs? It made short work of mine!

In any case, offlineimap looks like a really useful tool to combine
with mutt, I've been looking for something like this for a while. I
have it doing what I want it to now and I think I'll continue to use
it. Just keeping that interesting little feature in mind. I suppose I
can see what happened, offlineimap has no way of telling whether I
deleted the files cause I wanted to redownload it again from the
start, or whether I'd been deleting a bunch of unwanted email and now
wanted to sync the changes. Perhaps I should use some sort of
interactive mode that asks before deleting stuff, if there is one.

I got round it by renaming my Personal account to my Home account,
then offlineimap started from the beginning again, downloading all the
email from the remote server, this time with the filters I wrote.

Nice job! I do like the program.

On 10/12/06, John Goerzen <jgoerzen@xxxxxxxxxxxx> wrote:
> Yes.  See the folderfilter examples in the sample config file.  You may
> also be wanting to supply a "reference" to the remote IMAP server to
> speed things up.
>
> On Thu, Oct 12, 2006 at 04:48:53PM +0100, Sean Hammond wrote:
> > Is there any way to tell offlineimap to sync only certain files? My
> > IMAP account gives access to my whole remote homedir, but I only want
> > to sync the emails!
> >
> >
> >
>



[Prev in Thread] Current Thread [Next in Thread]