Filter incoming mail from lists with mailfilter
iceblink at seti.nl
Tue Nov 4 13:53:05 UTC 2014
On 2014-11-04 14:23, Toby wrote:
> On 2014-11-04 14:06, Patrick Asselman wrote:
>> On 2014-11-04 13:37, Toby wrote:
>>> I got problems with my .mailfilter (maildrop) config. The sorting
>>> incoming emails from different Ubuntu mailing lists fails.
>>> Here is a snippet:
>>> # Debian mailing lists
>>> if (/^X-Mailing-List: <debian-announce at lists.debian.org>/)
>>> to "$HOME/Maildir/.Linux.Debian.Announce"
>>> if (/^X-Mailing-List: <debian-news at lists.debian.org>/)
>>> to "$HOME/Maildir/.Linux.Debian.News"
>>> if (/^X-Mailing-List: <debian-user at lists.debian.org>/)
>>> to "$HOME/Maildir/.Linux.Debian.User"
>>> # Ubuntu mailing lists
>>> if (/^X-BeenThere: ubuntu-server at lists.ubuntu.com>/)
>>> to "$HOME/Maildir/.Linux.Ubuntu.Server"
>>> if (/^X-BeenThere: ubuntu-users at lists.ubuntu.com>/)
>>> to "$HOME/Maildir/.Linux.Ubuntu.User"
>>> I've had the Debian entry's for years and they still work. I
>>> signed up for the Ubuntu lists and it fails. All emails from Ubuntu
>>> lists ends up i the standard Inbox.
>>> The "X-Mailing-List" header is missing from the Ubuntu lists and it
>>> seems "X-BeenThere" does not work. Anyone got a hint for me?
>> I don't use maildrop myself, but... as far as i'm aware the X-*
>> headers are not standardised in any way, so if a filter on
>> X-Mailing-List works there is no reason why a filter on X-BeenThere
>> should not work. Are you sure you didn't make a typo somewhere? Is
>> possible to share the entire .mailfilter file so we can have a good
>> look at it?
>> Best regards,
> how very embarrassing I got an ">" at the tail on the Ubuntu filters.
> It will probably work fine now :)
Don't feel bad, I stared at your message for a while to look for typos
but I didn't spot it either!
More information about the ubuntu-users