Setting up Procmail on TextDrive

Hopefully this will save someone else trying to set up Procmail on Textdrive some time.

Posted on 2006-06-24 21:21 by Jørn Støylen [permalink]

This is another one of my “I had troubles finding this out, so I will write about it on my site so other people might benefit from my mistakes” kind of articles—this time about Procmail and how to get it to work with your email account at TextDrive.

This article might be expanded upon as I learn more about the topic herein.

Finding the right place on TextDrive

On TextDrive it’s pretty easy to set up many domains and users using their Webmin interface. And while everything is neatly organized, it can also be a bit confusing.

Myself, I set up my recipes in two wrong places until I found the correct place for them. At first I was working on my top “home” folder on the server. Then I realized I should be working under ~/domains/travholt.net/, which was kind of correct, but I should really be in ~/domains/travholt.net/homes/jorn, which is my main email account’s home folder.

And according to this help article on TextDrive, if you want to set up

According to “this help file”

Specifying which IMAP folder emails should go to

TextDrive uses the Courier IMAP server, which uses the maildir format (each message is in its own file, as opposed to the older mbox format, where all emails in a folder are in one big file).

To tell this to Procmail, use a period in front of the folder name (which is Courier’s internal naming convention) and a trailing slash (which is how you let Procmail know it should use the maildir format).

Also, if you have subfolders, separate them with periods.

So if you want to move incoming messages from the Tracks mailing list, which have ”[Tracks-discuss]” in the subject, into the folder “Tracks” which is a subfolder of a folder called “MailingLists”, it would look like so:

:0:
* ^Subject:.*\[Tracks-discuss\]
.MailingLists.Tracks-discuss/

A tip for Thunderbird users

If you use Procmail to move incoming mail to other IMAP folders, you won’t see that this has happened unless you specifically tell Thunderbird to check those folders for new messages, like so:

Comments closed

Commenting is closed for this article.