bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Re: IMAP protocol violation in 1.1


From: Simon Josefsson
Subject: [bug-mailutils] Re: IMAP protocol violation in 1.1
Date: Sat, 16 Aug 2008 01:42:33 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Sergey Poznyakoff <address@hidden> writes:

> Simon Josefsson <address@hidden> ha escrit:
>
>> How would a normal maildir setup look like?
>
> Here's what I use on my mailservers:
>
> mailbox {
>   # Keep user mail in maildir format, mailboxes are arranged in an
>   # indexed directory hierarchy with nesting level 2:
>   mailbox-pattern
>          "maildir:/var/spool/mail;type=index;param=2;user=${user}";
>   # Create new mailboxes in maildir format as well. It is needed, among
>   # others, for IMAP `CREATE' command/
>   mailbox-type "maildir";
> };
>   
>> I use exim4 in debian, and it delivers mail into ~/Maildir/ for
>> people.  I don't want the entire home directory exported, just the
>> sub-folders under ~/Maildir/.  I tried the various mailbox-pattern
>> stuff like: 
>> 
>> mailbox {
>>   mailbox-pattern "maildir:/usr/local/var/mail;type=index;param=2;"
>>                   "user=${user}"; 
>> };
>> 
>> But all the constructs seems to assume that the username comes last in
>> path, but for me it comes in the middle - like /home/jas/Maildir/.
>
> No problem, use this:
>
>   mailbox-pattern "maildir:/home/${user}/Maildir";

Excellent!  ... almost.  The LIST command works a bit mysterious.  If I
have SELECTed INBOX, it appears to work fine, but not if I have closed
the mailbox?  Then it seems to list all files in my home directory.

address@hidden:~$ sbin/imap4d --preauth 
* PREAUTH IMAP4rev1 Debugging mode
. select inbox
* 1 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1218843311] UID valididy status
* OK [UIDNEXT 2] Predicted next uid
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Deleted \Seen)] Permanent flags
. OK [READ-WRITE] SELECT Completed
. list "" "*"
* LIST (\NoInferiors) NIL INBOX
. OK LIST Completed
. close
. OK CLOSE Completed
. list "" "*"
* LIST (\NoInferiors) NIL INBOX
* LIST (\NoInferiors) "/" mailutils-1.9.91-20080814.tar.bz2
* LIST (\NoInferiors) "/" .bashrc
* LIST (\NoSelect) "/" lib
* LIST (\NoInferiors) "/" lib/libmuauth.a
* LIST (\NoInferiors) "/" lib/libmu_maildir.la
* LIST (\NoInferiors) "/" lib/libsieve.a
* LIST (\NoInferiors) "/" lib/libmu_pop.so.2

I've tried these two configurations:

mailbox {
  mailbox-pattern "maildir:/home/${user}/Maildir";
  # Create new mailboxes in maildir format as well. It is needed, among
  # others, for IMAP `CREATE' command/
  mailbox-type "maildir";
};

mailbox {
  mailbox-pattern "maildir:~/Maildir";
  # Create new mailboxes in maildir format as well. It is needed, among
  # others, for IMAP `CREATE' command/
  mailbox-type "maildir";
};

>> How much of the old documentation applies to mailbox configuration?
>
> The docs are largely outdated.  The parts regarding configuration are
> out of whack completely.  However, the description of the utilities
> (Chapter "Programs"), and the Sieve library (Chapter "Sieve Language")
> remains mostly accurate.  There are also considerable changes in the
> mailutils libraries.  In general, I'd recommend to read the NEWS file
> first: I attempted to tersely document all the changes there.  Should
> you need any clarifications, please, do not hesitate to ask.
>
> I'll try to bring the docs in synch with the actual state as soon as I
> have some free time for that.

I think I'm fairly close to getting this up and running, I want a IMAP
server for my ~/Maildir/ hierarchy, and nothing outside that directory.
Exim should be able to deliver to that directory.

Thanks,
Simon




reply via email to

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