procmail
[Top] [All Lists]

Re: MIME headers in Procmail

2011-07-08 12:12:53

Quoting "David W. Tamkin" <dattier(_at_)panix(_dot_)com>:

Rick,

Also, if that user friendly interface were modified to do variable
matches instead of header matches.... Would it be more or less
reliable?

Procmail already can match on the contents of variables, if that's what you
mean.  Look through the procmailrc(5) man page for the

 VARIABLE ??

construction.

Perhaps you meant something else and that isn't relevant.

Hi David,

Not specifically what I meant. From a user perspective, they'll probably want to match, for example:
"Re: MIME"

Now, if the Subject is in UTF8, and we mess with it and stick the result into a variable, will it match "Re: MIME" more often or less often than when just doing a header match? That's my question.

Or maybe the solution for that question is to have the user interface just write both versions transparently for the user who simply wants to do a Subject line match to "Re: MIME"

I think the OP was leaning towards having procmail _always_ decode UTF8. Maybe if it was built into procmail in some way. I'm not a regex expert by any means, but the way it's done now:
* ^Subject:.*Re: MIME
doesn't seem like it would be very programatically easy to allow for something like:
* (UTF8)^Subject:.*Re: MIME

Rick




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>