AW: [Zope] Python 1.5.2 and unicode
Hello Oleg great. You have to know taht I´am not good in python programming.My boss said that I have to do sometfing with it. My next question is about your tool. The E-Mails I receive are stroed in a list / array. eacht email line is one entry in my array. But your tool supports only emails which are stored in a file. --> according mimetools.Message. Is it possible to use my array with this class. How :-)) Florian Schuler -----Ursprüngliche Nachricht----- Von: Oleg Broytmann [mailto:phd@phd.pp.ru] Gesendet: Freitag, 26. Oktober 2001 10:30 An: Florian Schuler Cc: Zope Mailingliste (E-Mail) Betreff: Re: [Zope] Python 1.5.2 and unicode On Fri, Oct 26, 2001 at 10:17:44AM +0200, Florian Schuler wrote:
I have a big problem ! I wrote a script to parse emails. Ok that works fine. But sometimes there are emails with a "subject: =?ISO-8859-1?Q?AW=3A_=7B80/20/2=7D=5BOrganizer=5D_RE=3ARE" and so on. ( Outlook creates that )
I think it is in unicode. Does someone of you know how to parse this string so, that the ASCII expressions changed into chars
This is not Unicode, this is quoting according to RFC2047. You can find code to decode in my mimedecode.py program: http://phd.pp.ru/Software/Python/#mimedecode Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Fri, Oct 26, 2001 at 11:31:34AM +0200, Florian Schuler wrote:
great. You have to know taht I╢am not good in python programming.My boss said that I have to do sometfing with it.
As usual.
My next question is about your tool. The E-Mails I receive are stroed in a list / array. eacht email line is one entry in my array. But your tool supports only emails which are stored in a file. -->
Not necessary. It can read stdin. And of course you can always modify it to your needs. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Florian Schuler -
Oleg Broytmann