procmail
[Top] [All Lists]

Re: filtering "'=?iso-8859-1?Q?..."

1997-03-22 10:14:18
era eriksson writes on 22 March 1997 at 17:33:34
On Sat, 22 Mar 1997 14:58:16 +0100 (CET),
Robin S Socha <uzs8kb(_at_)uni-bonn(_dot_)de> wrote:
First, thanks to era eriksson, the recipe now works...

Good to hear :-)

...but is there anything I can do about the [From] I get in the bozolog? 
Right now, I'm getting things like:
    
    '=?iso-8859-1?Q?Christiana_M=2E_Khalif=E9?=

This has nothing with Procmail to do. The fact is that it is
specifically prohibited to have 8-bit characters in the headers of a
[...]
   :0hf
   * =\?iso-8859-1\?Q\?
   * any other conditions you might want ... 
   | perl -ne 'if (m/(.*?)=\?iso-8859-1\?Q\?(.*?)\?=(.*)/) { \
      local ($r, $s, $t) = ($1, $2, $3); $s =~ s#_# #g; \
      $s =~ s#=([0-9A-F]{2})# sprintf ("%c", hex ($1)) #ge; \
      print "$r$s$t\n"; \
     } else { print; }'
[...]

It seems like this might be a good option for some varient of 
"formail -x"; otherwise everybody will have their own varient of the
above (not to mention invoking a seperate process).  With the the MIME
headers now becoming increasingly common, you end up with a bunch of
gibberish from "formail -xTo:", "formail -xFrom:" or "formail -xSubject:".

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        
http://www.bristol.com/~DanS
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, the Netherlands               {info,jobs}(_at_)bristol(_dot_)com

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