procmail
[Top] [All Lists]

Foot in Mouth Day

1999-05-20 08:11:43
Sung to the Beatles classic "You've Got To Hide Your Love Away".

    Here I stand, foot in mouth, turned my face to the wall ...

On Thu, 20 May 1999 14:56:09 +0300 (EET DST), I wrote:
    :0
    | /bin/deliver-mail
    EXITCODE=$?

As Gjermund pointed out in private mail, there needs to be a w or W
flag on the delivery recipe as well.

On Thu, 20 May 1999 17:36:05 +0300 (EET DST), I wrote:
<lhecking(_at_)nmrc(_dot_)ucc(_dot_)ie> wrote:
Quite often, I find entries like this one in my procmail logs:
  Subject: =?iso-8859-1?Q?AW=3A_Gru=DF?=
Is there any way to make procmail show these entries properly
decoded, like
  Subject: AW: Gruß
Pass them to mmencode after suitable stripping, or write your own Perl
script. Look for sprintf and perl in the archives.
(Here's one answer:
<http://www.xray.mpe.mpg.de/mailing-lists/procmail/1998-08/msg00028.html>
There were several others in the query results I got.)

Not really a wrong answer, but I think perhaps a better one is this:
<http://www.xray.mpe.mpg.de/mailing-lists/procmail/1997-03/msg00215.html>

Neither of these messages are completely accurate; as I recall, there
have been longish threads about this before and possibly at some point
some really +real+ answers were posted.

The RFC where this encoding is explained is RFC2047.

The only place where I actually decode this, I call up mmencode -u
from within Perl on the string between =whatever=?B? and the final ?=
(note that there can be several encoded strings like this in a
header).

Also notice the difference between ?Q? encoding (which the previous
replies addressed; Quoted-Printable; mimencode -qu) and ?B? encoding
(base64 encoding, mimencode -q). Probably better, or at least
complementary, search results could be found with the string
"mimencode".

I think I shall refrain from posting for a while now ...

/* era */

-- 
.obBotBait: It shouldn't even matter whether     <http://www.iki.fi/era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>
 * Sign the European spam petition! <http://www.politik-digital.de/spam/en/> *

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