4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Filtering mails with ...
FromSent OnAttachments
jes...@isaatc.ull.esSep 12, 2006 3:16 am 
Sam VarshavchikSep 12, 2006 4:03 am 
jes...@isaatc.ull.esSep 12, 2006 5:54 am 
Sergiy ZhukSep 12, 2006 12:21 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Filtering mails with UTF-8 headersActions...
From:Sergiy Zhuk (ser@yahoo-inc.com)
Date:Sep 12, 2006 12:21:19 pm
List:net.sourceforge.lists.courier-maildrop

hi

On Tue, 12 Sep 2006 jes@isaatc.ull.es wrote:

I send you this mail because I have a little question. Can I use maildrop to filter mails with headers like?

Subject: =?UTF-8?B?QXVsYTogRXN0YWRvIGRlIGxhIHByb2dyYW1hY2nDs24gZGUgbGFzIENvcGk=?= =?UTF-8?B?YXMgZGUgU2VndXJpZGFk?=

While maildrop itself can't handle utf-8, you can call reformime and compare the decoded stream, e.g.:

if( /^Subject:(.*)/ ) { SUB=`reformime -h "$MATCH1"` if( $SUB =~ /your 8-bit string/ ) { to "./Maildir/.whatever/." } }

You can set this up for any MIME-encoded headers.