sean finney wrote:

> 
> [Repository SeaniusLocal]
> type = Maildir
> localfolders = ~/mail/seanius.net
> sep = /
> 
> and if ~/mail does not exist, offlineimap dies with a stack trace probably the
> result of using os.mkdir() instead of os.makedirs() (as seen below)
> 
> the workaround is simple enough, but so is the fix, i'm guessing :)

I really think this is a feature, not a bug.

If I try to echo foo > ~/mail/seanius.net/blah, and ~/mail doesn't
exist, I'd get an error.

It may make sense for OfflineIMAP to create seanius.net in the above
example, but I don't think it makes sense for it to create ~/mail.
Programs shouldn't go around creating directories willy-nilly.  What if
you had made a typo and said ~/msil?  I'd rather have the error than
create a directory on what may be a different filesystem or something.

Your thoughts?

-- John




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to