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

Using maildrop to filter mail [Re: Hey humans, I'm a machine]



On Sb, 18 ian 14, 19:37:52, Zenaan Harkness wrote:
> 
> Gmail does some annoying things here and there - I really need to go
> back to mutt and postfix (they're actually configured for some months
> now, but I want to use some sorting function other than procmail, and
> don't have time to get up to speed yet with an alternative) 

maildrop. For postfix you need:

/etc/postfix/main.cf

mailbox_command = maildrop

If you use some other program to retrieve mail you also need to tell it 
to use maildrop for delivery. For getmail it would be:

~/.getmail/getmailrc
-------------
[destination]
type = MDA_external
path = /usr/bin/maildrop
unixfrom = True
-------------

Then for maildrop itself a minimal configuration would be:

/etc/maildroprc
---------------
# Global maildrop filter file

# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
DEFAULT="$HOME/Maildir"

# set the SENDMAIL variable
SENDMAIL=/usr/sbin/sendmail
---------------

~/.mailfilter
-------------
# Sorting the mailing lists

# These are the lists.debian.org lists
if (/^List-Id:.*<debian-(.*)\.lists.debian.org>/)
    to Maildir/.debian.$MATCH1/
-------------


Kind regards,
Andrei
P.S. my setup is a bit more complex than that, I hope I didn't screw 
anything up while simplifying
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: