|Wolfgang Jeltsch||Nov 28, 2004 3:54 pm|
|Dew Ediho||Nov 29, 2004 10:42 am|
|Wolfgang Jeltsch||Nov 29, 2004 11:07 am|
|Gordon Messmer||Nov 29, 2004 11:33 am|
|Wolfgang Jeltsch||Nov 29, 2004 12:21 pm|
|Phillip Hutchings||Nov 29, 2004 12:55 pm|
|Malcolm Weir||Nov 29, 2004 1:37 pm|
|Gordon Messmer||Nov 29, 2004 1:41 pm|
|Dew Ediho||Nov 29, 2004 6:36 pm|
|Wolfgang Jeltsch||Nov 30, 2004 3:15 am|
|Subject:||Re: [courier-users] delivery to subfolders|
|From:||Phillip Hutchings (sith...@sitharus.com)|
|Date:||Nov 29, 2004 12:55:48 pm|
On 30/11/2004, at 9:28 AM, Wolfgang Jeltsch wrote:
Am Montag, 29. November 2004 20:31 schrieb Gordon Messmer:
Wolfgang Jeltsch wrote:
After this is done, I create a subfolder ABC by entering
maildirmake -f ABC ~/Maildir.
Now how can I tell Courier to deliver mail to the subfolder ABC?
The simplest way to direct all mail to a subfolder would be to create a ".courier" file in your home directory with one line:
Yes, I already thought about this way. But is this safe? As far as I understand, you should normally not access the subfolder directories (like .ABC) directly.
You should be able to, the maildir spec allows it. Works fine for me as well, I have about 8 different lists delivered to subfolders by maildrop, I just use the line equivalent to: to "$HOME/.maildir/.Lists.Courier MTA"
and I've never had a problem.
What does the Courier MTA or Maildrop do when delivering an e-mail? Does it just put the mail in a file in the "new" directory? Then your approach would be safe. Or does it also update certain files located at the top level of the maildir?*) Then your approach would be errornous since the MTA/Maildrop would try to update files in ~/Maildir/.ABC while they in fact reside in ~/Maildir.
*) Courier IMAP does so, for example. It creates courierimapsubscribed and courierimapuiddb.
courierimapuiddb exists in every subfolder, an IMAP has the notion of the tree - it knows which is the root. It doesn't matter for maildrop. On delivery the message gets put in new, and that's all.
The background of this whole thing is that I want to have IMAP folders like Inbox, Sent and Trash which reside on the same hierarchy level.
Then "modify" your IMAP account configuration in Kmail and set the "Prefix to folders" setting to "INBOX".
But then I'm not able to access the top level INBOX, right? So I still have to deliver mail to a subfolder of INBOX.
Works fine for me. INBOX iirc is a special name in IMAP.
If I just let Courier direct mail to ~/Maildir and access ~/Maildir with my e-mail client (KMail) via IMAP, I have a top level folder Inbox and all other folders I create are located below Inbox. This is, of course, nonsensical.
I sometimes think the same thing about the noise made over a such a cosmetic feature. ;)
Form matters too, not only function. :-)
But in this case the client is in error. The server tells it that INBOX is the prefix for all subfolders, and the client should display it as if INBOX was the root, or / in filesystem speak. Mail.app on OS X manages this, as does squirrelmail. In both of these cases I set the prefix to INBOX. and it all works.