Click here to Skip to main content
15,895,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Budding Programmer Pin
softp_vc23-Jul-04 23:51
softp_vc23-Jul-04 23:51 
GeneralRe: Budding Programmer Pin
doctrane24-Jul-04 0:46
doctrane24-Jul-04 0:46 
GeneralRe: Budding Programmer Pin
Rocky Moore24-Jul-04 11:04
Rocky Moore24-Jul-04 11:04 
GeneralClosing Form after FormLoad Event Pin
myNameIsRon23-Jul-04 20:47
myNameIsRon23-Jul-04 20:47 
GeneralRe: Closing Form after FormLoad Event Pin
Dave Kreskowiak24-Jul-04 5:05
mveDave Kreskowiak24-Jul-04 5:05 
GeneralRe: Closing Form after FormLoad Event Pin
myNameIsRon25-Jul-04 12:08
myNameIsRon25-Jul-04 12:08 
GeneralHandling e-mail as files Pin
Grimolfr23-Jul-04 18:55
Grimolfr23-Jul-04 18:55 
GeneralRe: Handling e-mail as files Pin
Heath Stewart26-Jul-04 8:01
protectorHeath Stewart26-Jul-04 8:01 
Write one yourself; it's quite simple. You can read about SMTP in RFC 228[^], but it's really quite simple. SMTP headers use a Key: Value pair on separate lines. Headers that span multiple lines place whitespace before the Value (thus you should deduce that headers begin at the beginning of a line).

So, you could easily create a Hashtable and a TextReader derivative on the SMTP mail message. Call ReadLine and parse the text. If the line begins with white space, concatenate the line with the previous value. Put the key/value pairs into the Hashtable. Call ReadLine until you encounter a \r\n pair on a line by itself.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Handling e-mail as files Pin
Grimolfr26-Jul-04 11:40
Grimolfr26-Jul-04 11:40 
GeneralRe: Handling e-mail as files Pin
Heath Stewart26-Jul-04 11:53
protectorHeath Stewart26-Jul-04 11:53 
GeneralRe: Handling e-mail as files Pin
Grimolfr26-Jul-04 12:31
Grimolfr26-Jul-04 12:31 
GeneralRe: Handling e-mail as files Pin
Heath Stewart27-Jul-04 3:28
protectorHeath Stewart27-Jul-04 3:28 
GeneralRe: Handling e-mail as files Pin
Grimolfr27-Jul-04 12:06
Grimolfr27-Jul-04 12:06 
GeneralIntercept Print Jobs From Other Apps Pin
johnstacey23-Jul-04 14:29
johnstacey23-Jul-04 14:29 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Small Rat23-Jul-04 18:56
Small Rat23-Jul-04 18:56 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey24-Jul-04 3:16
johnstacey24-Jul-04 3:16 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Dave Kreskowiak24-Jul-04 4:56
mveDave Kreskowiak24-Jul-04 4:56 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey25-Jul-04 13:34
johnstacey25-Jul-04 13:34 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Dave Kreskowiak25-Jul-04 15:54
mveDave Kreskowiak25-Jul-04 15:54 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey4-Aug-04 0:22
johnstacey4-Aug-04 0:22 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Small Rat24-Jul-04 5:55
Small Rat24-Jul-04 5:55 
GeneralSave text file as html Pin
kloepper23-Jul-04 11:40
kloepper23-Jul-04 11:40 
GeneralC# services security Pin
TalkingBabb0t23-Jul-04 10:13
TalkingBabb0t23-Jul-04 10:13 
GeneralFilewatcher, additional need to monitor User making changes Pin
Ruchi Gupta23-Jul-04 6:06
Ruchi Gupta23-Jul-04 6:06 
GeneralRe: Filewatcher, additional need to monitor User making changes Pin
Heath Stewart23-Jul-04 9:23
protectorHeath Stewart23-Jul-04 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.