imap2maildir icon indicating copy to clipboard operation
imap2maildir copied to clipboard

Invalid mailbox name

Open greencopper opened this issue 10 years ago • 5 comments

I'm trying to access a Dovecop IMAP maildir, but no matter what I specify as the maildir I get the error "Exception: folder Maildir: Mailbox doesn't exist: Maildir".

--remote-folder="Maildir"

In my installation I have the following setup:

/var/vmail/[email protected]/Maildir/

In that there is cur/ new/ tmp/ .INBOX.Drafts/ .INBOX.Sent/ .INBOX.Trash/ .Queue/

How do I fetch all that then?

greencopper avatar Jan 01 '14 05:01 greencopper

When you connect with a "normal" IMAP client, what is the folder named? I'm guessing "INBOX" is what you'll want for --remote-folder. The actual location on the server's filesystem doesn't necessarily have any bearing on how the IMAP server presents the mailbox structure. -rt

On Wed, Jan 1, 2014 at 12:09 AM, greencopper [email protected]:

I'm trying to access a Dovecop IMAP maildir, but no matter what I specify as the maildir I get the error "Invalid mailbox name".

--remote-folder="Maildir"

In my installation I have the following setup:

/var/vmail/[email protected]/Maildir/

In that there is cur/ new/ tmp/ .INBOX.Drafts/ .INBOX.Sent/ .INBOX.Trash/ .Queue/

How do I fetch all that then?

— Reply to this email directly or view it on GitHubhttps://github.com/rtucker/imap2maildir/issues/20 .

Ryan Tucker [email protected]

rtucker avatar Jan 04 '14 01:01 rtucker

Thanks, using "INBOX" worked and subfoldes had to be loaded using "INBOX.Foo"

greencopper avatar Jan 08 '14 05:01 greencopper

Is it possible to somehow fetch subfolders in one go? "INBOX.*" doesn't work.

greencopper avatar Jan 08 '14 06:01 greencopper

The lack of UTF-8 would be a bug, most likely! I don't think I'm doing anything that should break it, but Python 2.x unicode support is painful at best. :-( Which version of Python are you using, and could you send a sample message demonstrating the problem (no personal information please!) as Maildir files from both the server and imap2maildir?

Right now, imap2maildir will only pull one folder at a time. (IMAP doesn't have a concept of "subfolders" so each folder stands alone.) This is a somewhat common feature request. Patches are very welcome, since it's unlikely I'll get a chance to add it any time soon.

Thanks! On Jan 8, 2014 1:32 AM, "greencopper" [email protected] wrote:

Is it possible to somehow fetch subfolders in one go? "INBOX.*" doesn't work.

— Reply to this email directly or view it on GitHubhttps://github.com/rtucker/imap2maildir/issues/20#issuecomment-31808971 .

rtucker avatar Jan 08 '14 23:01 rtucker

I looked into the UTF-8 issue, but it is not caused by imap2maildir. I found that dovecot below version 2.1 doesn't store mail in UTF-8 - so the issue is dovecot related. However, reading the downloaded mail using mutt, solves the problem.

About subfolders.. If I get the time I'll look into the issue and see if I can make a useable patch. Been a while since I hacked with Python.

greencopper avatar Jan 10 '14 07:01 greencopper