Filter incoming mail from lists with mailfilter

Toby ubuntu at debman.se
Tue Nov 4 13:23:36 UTC 2014


On 2014-11-04 14:06, Patrick Asselman wrote:
> On 2014-11-04 13:37, Toby wrote:
>> Hi,
>> 
>> I got problems with my .mailfilter (maildrop) config. The sorting of
>> 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 recently
>> 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?
>> 
>> Thanks!
>> 
>> BR
>> Toby
> 
> 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 it
> possible to share the entire .mailfilter file so we can have a good
> look at it?
> 
> Best regards,
> Patrick

Thanks,

how very embarrassing I got an ">" at the tail on the Ubuntu filters.

It will probably work fine now :)

BR
Toby




More information about the ubuntu-users mailing list