Hi,
I'm having a few problems getting maildrop to filter mails correctly. I have fetchmail poll different email servers and download email from them and pass them onto maildrop for local delivery. I want then to put emails for a specific email address into a separate file, but whatever I try I always end up having all my mails sent to this file.
My .fetchmailrc file is as follows:
Code:
set postmaster philip
set bouncemail
set no spambounce
poll 'pop3.example1.org' with proto POP3 user 'user' there with password 'pass' is 'philip' here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"
poll 'pop.mail.example2.org' with proto POP3 user 'user' there with password 'pass' is philip here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"
poll 'imap.example3.org' with proto IMAP user 'user' there with password 'pass' is philip here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"
I have cron run the command `fetchmail -f /home/philip/.fetchmailrc`every so often to retrieve my email.
My .mailfilter file looks like this
Code:
logfile "maildrop-filter-log"
if ( /^To: me@myuni.ac.uk/:h )
{
to "mbox/UniMail"
}
to "mbox/Inbox"
when I get a mail from say
me@regularaccount.com it goes to mbox/UniMail instead of mbox/Inbox. What am I doing wrong, I've seen sample .mailfilter files that look like this and it they claim it works
regards
Phil