SquirrelMail filters

Do you use SquirrelMail as your webmail client?  I do.  Recently I signed up to a mailing list that generates about a hundred e-mails a day.  Tired of having to manually clean my inbox, I decided to set up a mail filter to do it for me.  Here’s how to do it.

Firstly, you need to log into your Mailbox Manager.  This is seperate from the SquirrelMail site, and, for Dreamhost account, can be found at mailboxes.yourdomain.com.  The SquirrelMail login page links to it for me, but your milage may vary.

Once in the Mailbox Manager, you need to set up two mail filters.  Why two, you ask?  Simple.  One rule to move the messages to where you want them and a second rule to delete the messages from your inbox.  Wait, wait – move and then delete?  For some reason, SquirrelMail treats “move” as “copy”.  When you add a new rule you can choose the “Move it to folder” option.  Back in the Mailbox Manager this rule appears as “copy emails”, though, which I didn’t pick up on for a few days.  No wonder it didn’t work!

Oh, and your first rule needs to be set as “execute and continue” and your second one as “execute and stop.”  The first rule needs to be set like that to ensure that the second rule is actually run after copying the e-mails.  The second rule has to be set like that – you aren’t allowed to delete and e-mail and then carry on running filters on it 🙂

One final thing – when you specify the folder to move the e-mail to you don’t need to give the full path if it’s a subfolder of inbox.  E.g, if your target is Inbox->MyFolder, then just write “MyFolder”.  If your target is Inbox->MyFolder->MyOtherFolder, then you need to write “MyFolder.MyOtherFolder”.  Entering “Inbox.MyFolder” will create a folder with the path Inbox->Inbox->MyFolder.

The Mailbox Manager tells you that the folder needs to exist before the filters can move messages to it, but the existence of Inbox->Inbox->MyFolder on my system rather proves that wrong…

Leave a Comment