bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] RFC2822 header decoding question


From: Kostas Zorbadelos
Subject: [bug-mailutils] RFC2822 header decoding question
Date: Mon, 18 Sep 2006 12:20:29 +0300
User-agent: Mutt/1.5.11

Greetings to all.

I have the following situation:
I need to create a mail message based on the contents of another
message. Specifically, the new message contains in its body (parts of)
the original message's From: and Subject: headers.

The problem comes when From: and Subject: of the original message
contain non-ascii characters. In this case in the subject string I get
something of the form 

=?iso-8859-7?Q?=D0=F1=EF=E4=E9=E1=E3=F1=E1=F6=DD=F2?= /
        Hello =?iso-8859-7?Q?=E3=E9=E1?= =?iso-8859-7?Q?_=F4=E1?= world

This contains 8 bit Greek characters, so I need to decode them and
include them in a new message with 

"Content-Type: text/plain;charset=" MY_CHARSET "\n"
        "Content-Transfer-Encoding: 8bit\n\n";

I take a look at the mu_parse822* functions and especially
mu_parse822_quoted_string but I cannot understand what is
needed. Could someone help me on this?

Kostas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]