Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Decing a POP3 email

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul S - 24 Mar 2008 13:54 GMT
Hi

I'm trying to parse and email I get from a POP3 server.
Waht do I do to get the filename out right. I believe the encoding is
quoted-printable.

Content-Type: text/xml;
    name="=?ISO-8859-1?Q?Analytics_www.xxx.dk_20080224_(Bes=F8gsstatistik).xml?="
Content-Disposition: attachment;
    filename="=?ISO-8859-1?Q?Analytics_www.xxx.dk_20080224_(Bes=F8gsstatistik).xml?="
Content-Transfer-Encoding: quoted-printable

Signature

Thanks Paul S

Jeroen Mostert - 24 Mar 2008 14:01 GMT
> I'm trying to parse and email I get from a POP3 server.

This is a group on .NET, not e-mail protocols.

But to save us all a lot of time: RFC 1522, section 4.2.

Signature

J.

Paul S - 24 Mar 2008 21:15 GMT
Hi
This was more a question of whether the framework contained some sort of
help in decoding a qouted-printable text.
Signature

Paul S

> > I'm trying to parse and email I get from a POP3 server.
>
> This is a group on .NET, not e-mail protocols.
>
> But to save us all a lot of time: RFC 1522, section 4.2.
Jeroen Mostert - 24 Mar 2008 21:37 GMT
> This was more a question of whether the framework contained some sort of
> help in decoding a qouted-printable text.

No, and it's one of my pet peeves (less pet and more peeve, actually).
System.Net.Mail and System.Net.Mime contain a lot of classes, but they're
all glued together in such a way that you can't reuse them. Unless you're
really fond of using reflection in naughty ways.

You can *send* mail with quoted-printable text and headers just fine.
Receiving mail, on the other hand, is something you'll have to get a library
for. Or write yourself.

Signature

J.

Steven Cheng - 25 Mar 2008 03:36 GMT
Hi Paul,

So far in .Net framework there only provides some SMTP classes. For the
code print-able text, you may create a custom decoder through those
built-in encoding/decoding classes (such as the Convert class which support
base64 encode/decode...).  Here are some articles and open source component
about .net POP3 component, you may get some ideas from them:

#Using POP3 with C# to download and parse your mail.
http://www.codeproject.com/KB/cs/karavaev_denis.aspx

#How To POP3 in C#
http://www.csharphelp.com/archives2/archive450.html

#OpenPOP.NET
http://sourceforge.net/projects/hpop/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?UGF1bCBT?= <pas@community.nospam>
>References:  <C39E8923-1102-488F-9B69-B6E0D24F28B5@microsoft.com>
<47e7a614$0$14358$e4fe514c@news.xs4all.nl>
>Subject: Re: Decing a POP3 email
>Date: Mon, 24 Mar 2008 13:15:04 -0700

>Hi
>This was more a question of whether the framework contained some sort of
[quoted text clipped - 5 lines]
>>
>> But to save us all a lot of time: RFC 1522, section 4.2.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.