procmail
[Top] [All Lists]

Re: Character set change

2010-02-08 16:02:23
On Mon, 2010-02-08 at 15:10 -0600, JW Simpson wrote:
On Mon, 2010-02-08 at 15:22 -0500, sreti(_at_)bidmc(_dot_)harvard(_dot_)edu 
wrote:
Thanks.
Your advice and this link does indeed suggest there is something in the
incoming email containing Arabic characters:

http://www.mail-archive.com/perl4lib(_at_)perl(_dot_)org/msg00546.html

I'm not 100% sure however why the hard coded text that my procmail code
sends out should then arrive in my US email in this format.

It's because you didn't remove the "Content-Transfer-Encoding: base64" header.

Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding:
base64
MIME-Version: 1.0

Y�\�g���^���*ޱǧ�#&�z׬>�
�����,DC�bܩy#Lq
z{^�*.��h��%��,{O}��ݦ���!
:�E�b

john(_at_)system76-pc:~$ echo "Welcome to the Green Crescent SMS Diabetes
Program. Press REPLY & type SMS, THEN enter your blood glucose 0-999 and
press SEND. Dr S.Reti"|base64  -di
z{^�*.��h��%��,{O}��ݦ���! ���,DC�bܩy#Lq
:�E�b
john(_at_)system76-pc:~$ 



I suppose I should be more explicit.

What you are sending out (minus a few headers) looks like this:

        From: "Dr. Saif AlJaibeji" 
<saif(_dot_)aljaibeji(_at_)green-crescent(_dot_)com>
        To: "+971503391946(_at_)sms(_dot_)unwiredalerts(_dot_)com"
            <+971503391946(_at_)sms(_dot_)unwiredalerts(_dot_)com>
        Date: Wed, 3 Feb 2010 12:07:31 -0500
        Subject: 2231-2231
        MIME-Version: 1.0
        Content-Class: urn:content-classes:message
        Content-Type: text/plain; charset="utf-8"
        Content-Transfer-Encoding: base64
        
        Welcome to the Green Crescent SMS Diabetes Program. Press REPLY & type 
SMS, THEN enter your blood glucose 0-999 and press SEND. Dr S.Reti
        
The receiving mail server sees your claim that this is "base64", and "decodes" 
it to come up with the garbage you have been looking at.

-- 
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠

____________________________________________________________
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>