Mail and Encoding

Discussion in 'Perl Misc' started by steve, Sep 5, 2006.

  1. steve

    steve Guest

    Hi!

    I am trying to parse every email I am getting in a . I
    can pull the email using Net::pOP3. I am parsing each email using a
    Mail::Internet object. The problem I am getting is that in certain case,
    like Outlook forward message where the signature is in HTML some
    special characters are encode like =20 . Most message are in french so I
    have some special character like é è and so on.

    I have tried Encode:: module but I dont know from which table to what I
    should convert.

    Anyone got some ideas?

    Sorry for my bad english.. I am french native.

    Steve Lavoie
    Network administrator
    Micromédica
    steve, Sep 5, 2006
    #1
    1. Advertising

  2. steve

    steve Guest

    Thanks you! It is the solution. I tested it this morning and it is all
    right!

    Steve Lavoie
    Network administrator
    Micromedica




    A. Sinan Unur wrote:
    > steve <> wrote in news:zmkLg.30408$ED.23735
    > @read2.cgocable.net:
    >
    >
    >>I am trying to parse every email I am getting in a . I
    >>can pull the email using Net::pOP3. I am parsing each email using a
    >>Mail::Internet object. The problem I am getting is that in certain
    >>case, like Outlook forward message where the signature is in HTML some
    >>special characters are encode like =20 . Most message are in french so
    >>I have some special character like é è and so on.
    >>
    >>I have tried Encode:: module but I dont know from which table to what
    >>I should convert.
    >>
    >>Anyone got some ideas?

    >
    >
    > I am always confused about these things but I think you are looking at
    > messages in quoted printable format:
    >
    > http://search.cpan.org/~gaas/MIME-Base64-3.07/QuotedPrint.pm
    >
    > http://en.wikipedia.org/wiki/Quoted-printable
    >
    >
    >>Sorry for my bad english.. I am french native.

    >
    >
    > Not to worry and no need to apologize. There are people from all over
    > the world in this group.
    >
    > Sinan
    >
    steve, Sep 6, 2006
    #2
    1. Advertising

  3. On 2006-09-05 19:34, steve <> wrote:
    > I am trying to parse every email I am getting in a . I
    > can pull the email using Net::pOP3. I am parsing each email using a
    > Mail::Internet object.


    For parsing MIME mails (most are these days) you should use MIME::parser.

    hp

    --
    _ | Peter J. Holzer | > Wieso sollte man etwas erfinden was nicht
    |_|_) | Sysadmin WSR | > ist?
    | | | | Was sonst wäre der Sinn des Erfindens?
    __/ | http://www.hjp.at/ | -- P. Einstein u. V. Gringmuth in desd
    Peter J. Holzer, Sep 6, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,797
    Jon Skeet [C# MVP]
    Jun 9, 2004
  2. =?Utf-8?B?TWlja2VCb3k=?=

    Problem with System.Web.Mail.MailMessage and HTML mail

    =?Utf-8?B?TWlja2VCb3k=?=, Jun 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    892
    =?Utf-8?B?TWlja2VCb3k=?=
    Jun 21, 2005
  3. sunil
    Replies:
    0
    Views:
    582
    sunil
    Jul 28, 2004
  4. Replies:
    1
    Views:
    23,315
    Real Gagnon
    Oct 8, 2004
  5. Replies:
    2
    Views:
    353
Loading...

Share This Page