John Machin sjmac...@lexicon.net wrote:
On Feb 25, 11:07=A0am, Roy H. Han starsareblueandfara...@gmail.com
wrote:
Dear python-list,
I'm having some trouble decoding an email header using the standard
imaplib.IMAP4 class and email.message_from_string method.
In particular,
Thanks for writing back, RDM and John Machin. Tomorrow I'll try the
code you suggested, RDM. It looks quite helpful and I'll report the
results.
In the meantime, John asked for more data. The sender's email client
is Microsoft Outlook 11. The recipient email client is Lotus Notes.
Actual
Roy H. Han wrote:
On Wed, Feb 25, 2009 at 8:39 AM, rdmur...@bitdance.com wrote:
[Top-posting corrected]
John Machin sjmac...@lexicon.net wrote:
On Feb 25, 11:07=A0am, Roy H. Han starsareblueandfara...@gmail.com
wrote:
Dear python-list,
I'm having some trouble decoding an email header using
Steve Holden st...@holdenweb.com wrote:
from email.header import decode_header
print
decode_header(=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=)
[('Inteum C/SR User Tip: Quick Access to Recently Opened Inteum C/SR
Records',
Cool, it works!
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
email.header.decode_header() automatically.
On Wed, Feb 25, 2009 at 9:50 AM, rdmur...@bitdance.com wrote:
Steve Holden
rdmur...@bitdance.com wrote:
Steve Holden st...@holdenweb.com wrote:
from email.header import decode_header
print
decode_header(=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=)
[('Inteum C/SR User Tip: Quick Access to Recently
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
email.header.decode_header() automatically.
And I wonder why you would think the header
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder
Thorsten Kampe wrote:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by
En Wed, 25 Feb 2009 15:01:08 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for
Steve Holden st...@holdenweb.com wrote:
rdmur...@bitdance.com wrote:
Steve Holden st...@holdenweb.com wrote:
from email.header import decode_header
print
decode_header(=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=)
rdmur...@bitdance.com wrote:
[...]
The process of moving from this folded multiple-line representation
of a header field to its single line representation is called
unfolding. Unfolding is accomplished by simply removing any CRLF
that is immediately followed by WSP. Each header
* Tim Golden (Wed, 25 Feb 2009 17:27:07 +)
Thorsten Kampe wrote:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
[...]
And I wonder why you would think the header contains Unicode characters
when it says us-ascii
En Wed, 25 Feb 2009 15:44:18 -0200, rdmur...@bitdance.com escribió:
Tab is not mentioned in RFC 2822 except to say that it is a valid
whitespace character. Header folding (insertion of crlf) can
occur most places whitespace appears, and is defined in section
2.2.3 thusly: [...]
So, the
En Wed, 25 Feb 2009 16:19:35 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Tim Golden (Wed, 25 Feb 2009 17:27:07 +)
Thorsten Kampe wrote:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
[...]
And I wonder why you
On Feb 25, 11:07 am, Roy H. Han starsareblueandfara...@gmail.com
wrote:
Dear python-list,
I'm having some trouble decoding an email header using the standard
imaplib.IMAP4 class and email.message_from_string method.
In particular, email.message_from_string() does not seem to properly
decode
17 matches
Mail list logo