Hans-Christian Prytz | 6 Oct 2003 14:33

Problem working with uw-imapd

Hi, I'm trying to set up OfflineIMAP to sync with a server running 
uw-imapd, and I have some problems.

1) the imapd exports the whole homedir, so in order to locate mailboxes 
I should set "reference = Mail" if I have the extra mailboxes under 
~/Mail, right?
If I do that all the mailboxes under ~/Mail gets downloaded, but not 
INBOX. As seems to be the standerd, INBOX is a special case, and is 
stored partly in /var/spool/mail/≤username> (for new mails) and ~/mbox 
for seen mail. Every other IMAP mailreader gets INBOX even though I set 
prefix (or whatever it's called in that mailprogram) to ~/Mail. Is there 
are way to get OfflineIMAP to do this?

1a) I have found a way to solve the above (sort of). If I dont set 
"reference = Mail" (ie. comment it out) and set "folderfilter = lambda 
foldername: re.search('(^INBOX$|^Mail/)', foldername)" I get INBOX and 
the filders under ~/Mail downloaded to the local machine. Will this 
interfare somehow with syncing? The reason I ask is my second problem.

2) When I move a mail from one maildir to another locally it seems to be 
transfered on the server as well during the next sync (not quite sure 
yet). Howevere if I create a new maildir, it is not created on the 
servere. How do I get offlineimap to do this? Could this be related to 1a)?

Oh, /usr/bin/offlineimap has init.startup('4.0.0') in it, so I guess 
this is version 4

Any suggestions anyone?

Hans-Christian
(Continue reading)

Rob Walker | 6 Oct 2003 21:04

Re: Problem working with uw-imapd

Hans-Christian,

>> On Mon, 06 Oct 2003 14:33:45 +0200, Hans-Christian Prytz
>> <hp <at> prytz.net> said:

   > 1) the imapd exports the whole homedir, so in order to locate
   >    mailboxes
   > I should set "reference = Mail" if I have the extra mailboxes under
   > ~/Mail, right?  If I do that all the mailboxes under ~/Mail gets
   > downloaded, but not INBOX. As seems to be the standerd, INBOX is a
   > special case, and is stored partly in /var/spool/mail/≤username>
   > (for new mails) and ~/mbox for seen mail. Every other IMAP
   > mailreader gets INBOX even though I set prefix (or whatever it's
   > called in that mailprogram) to ~/Mail. Is there are way to get
   > OfflineIMAP to do this?

I had the same problem with INBOX, so I used a symlink to get around it.
In my home directory, there is now /home/rob/Mail/INBOX, which is a
symlink to /var/mail/rob

This seems to work fine.

   > 1a) I have found a way to solve the above (sort of). If I dont set
   > "reference = Mail" (ie. comment it out) and set "folderfilter =
   > lambda foldername: re.search('(^INBOX$|^Mail/)', foldername)" I get
   > INBOX and the filders under ~/Mail downloaded to the local
   > machine. Will this interfare somehow with syncing? The reason I ask
   > is my second problem.

That's cool, I wish I had thought of that.
(Continue reading)

Micah Anderson | 14 Oct 2003 19:08

IMAP to mbox

So I'm another fetchmail convert, I dont know why it took me so long
to find exactly what I needed, but I finally did in offlineimap. I
only have a couple questions that I want to straighten out.

I've been pulling my mail down from a courier IMAP server via
fetchmail, and delivering it locally with postfix+procmail. My INBOX
gets sent to /var/spool/mail/micah and my individual IMAP folders get
put into their respective mbox folders. I have also been using mutt to
save messages into those folders locally. Right now, I've got my
mailspool in mbox format, and all my mailboxes in that format.

Using offlineimap it seems as my only option is to pull the mail down
into Maildir format. Unless I am mistaken, this means I cannot
transition from my mbox format boxes without either converting all my
local mail to Maildir format (using mb2md), or by doing it by hand in
mutt, or is there a value I can set to the "Type" variable to save my
messages locally in mbox format, which would allow me to put all my
existing mboxes in the right spot, launch offlineimap for the first
time and then everything would get sync'd up?

Last question:

I have a list of folders I want to pull down, and a regular expression
that I want to use for a number of folders, I tried various formats
but could not get this to work:

folderfilter = lambda foldername: foldername in ['re.search('(INBOX.sent-mail)
foldername)', 'INBOX', 'INBOX.Spam', 'INBOX.othermail']

I can put the regular expression by itself, and all the
(Continue reading)

John Goerzen | 14 Oct 2003 23:28
Favicon

Re: IMAP to mbox

On Tue, Oct 14, 2003 at 10:08:39AM -0700, Micah Anderson wrote:
> Using offlineimap it seems as my only option is to pull the mail down
> into Maildir format. Unless I am mistaken, this means I cannot

You have two options:

1. Store mail in Maildir format locally;
2. Run a local IMAP server and have OfflineIMAP do an IMAP<->IMAP sync

Option 2 is specifically in there for people like you have want to use a
local format other than Maildir.

However:

> transition from my mbox format boxes without either converting all my
> local mail to Maildir format (using mb2md), or by doing it by hand in

I highly recommend you do this.  Maildir is a better format in many
different ways, and syncing IMAP<->Maildir is faster and more reliable than
IMAP<->IMAP or, for that matter, IMAP<->mbox.  Here are some reasons why
Maildir is better:

 * Metadata about the message can be stored outside the message.
   This includes message flags and UIDs for OfflineIMAP.

 * The start and end of a message are simply the start and end of a file.
   With mbox, rules are ambiguous, differ from program to program,
   can often require munging of the text of the message itself if it has
   any lines that begin with "From ".

(Continue reading)

Rob Walker | 15 Oct 2003 00:26

not syncing from Maildir -> IMAP


I stored a new email locally into a new maildir folder, and it has one
email in it.  When I run offlineimap, it does not create a new IMAP
mailbox on the IMAP server, with the new message in it, as I expected it
would.

Is offlineimap supposed to do this?

thanks for a great app!

rob

--

-- 
"My Windows box sits in the corner, an appliance to run legacy software.
 In my opinion, that's the ideal use of Windows."    -- Steve Litt

John Goerzen | 15 Oct 2003 03:24
Favicon

Re: not syncing from Maildir -> IMAP

On Tue, Oct 14, 2003 at 03:26:34PM -0700, Rob Walker wrote:
> I stored a new email locally into a new maildir folder, and it has one
> email in it.  When I run offlineimap, it does not create a new IMAP
> mailbox on the IMAP server, with the new message in it, as I expected it
> would.

OfflineIMAP does not presently create new folders on the server, nor delete
folders that were deleted.  However, if you add that folder on the server,
the message you put in it will be automatically synced.

This was a design decision some time back and it's now seeming not quite so
sensible.  Maybe I'll add that feature.

-- John

John Goerzen | 15 Oct 2003 03:35
Favicon

Re: not syncing from Maildir -> IMAP

I should clarify: the only thing OfflineIMAP does as far as
creating/deleting folders is concerned is to create new folders on the
client when they show up on the server.

On Tue, Oct 14, 2003 at 08:24:25PM -0500, John Goerzen wrote:
> On Tue, Oct 14, 2003 at 03:26:34PM -0700, Rob Walker wrote:
> > I stored a new email locally into a new maildir folder, and it has one
> > email in it.  When I run offlineimap, it does not create a new IMAP
> > mailbox on the IMAP server, with the new message in it, as I expected it
> > would.
> 
> OfflineIMAP does not presently create new folders on the server, nor delete
> folders that were deleted.  However, if you add that folder on the server,
> the message you put in it will be automatically synced.
> 
> This was a design decision some time back and it's now seeming not quite so
> sensible.  Maybe I'll add that feature.
> 
> -- John
> 

--

-- 
John Goerzen <jgoerzen <at> complete.org>                       www.complete.org

Rob Walker | 15 Oct 2003 05:44

Re: not syncing from Maildir -> IMAP


>> On Tue, 14 Oct 2003 20:24:25 -0500, John Goerzen <jgoerzen <at> complete.org> said:

   > OfflineIMAP does not presently create new folders on the server,
   > nor delete folders that were deleted.  However, if you add that
   > folder on the server, the message you put in it will be
   > automatically synced.

k.

   > This was a design decision some time back and it's now seeming not
   > quite so sensible.  Maybe I'll add that feature.

I would love that feature.  This would help me to keep things straight
between multiple clients.  Thanks!

rob

--

-- 
Reform copyright law -- return abandoned works to the public domain
after 50 years: http://www.PetitionOnline.com/eldred/petition.html

Randy Orrison | 15 Oct 2003 08:26

Re: not syncing from Maildir -> IMAP

Rob Walker wrote:
>>>On Tue, 14 Oct 2003 20:24:25 -0500, John Goerzen <jgoerzen <at> complete.org> said:
>    > OfflineIMAP does not presently create new folders on the server,
>    > nor delete folders that were deleted.  However, if you add that
>    > folder on the server, the message you put in it will be
>    > automatically synced.
> 
> I would love that feature.  This would help me to keep things straight
> between multiple clients.  Thanks!

Please keep it as an option -- I have some huge folders on my client 
side that I don't want replicated on the server.  I suppose I could 
rearrange my folder tree and filter them by name, but it's much easier 
the way it is currently.

Randy

Micah Anderson | 16 Oct 2003 19:26

Re: not syncing from Maildir -> IMAP

It would be a nice feature to have, it would be even nicer if you
could specify in your .offlineimaprc which folders should be
included/excluded, so it doesn't pull them all. For example, I like to
keep all my sent mail. Once my sent mail gets to be a year old (ie.
sent-mail-Sep-2002) I remove it from the server, and only keep it
locally. 

Since we are talking features... is there a way to specify an
autorefresh rate for specific folders? There are some folders I want
to keep updated fairly often (my INBOX for example), but others that I
dont need as frequently (some mailing lists).

Micah

On Wed, 15 Oct 2003, Randy Orrison wrote:

> Rob Walker wrote:
> >>>On Tue, 14 Oct 2003 20:24:25 -0500, John Goerzen <jgoerzen <at> complete.org> said:
> >    > OfflineIMAP does not presently create new folders on the server,
> >    > nor delete folders that were deleted.  However, if you add that
> >    > folder on the server, the message you put in it will be
> >    > automatically synced.
> > 
> > I would love that feature.  This would help me to keep things straight
> > between multiple clients.  Thanks!
> 
> Please keep it as an option -- I have some huge folders on my client 
> side that I don't want replicated on the server.  I suppose I could 
> rearrange my folder tree and filter them by name, but it's much easier 
> the way it is currently.
(Continue reading)


Gmane