andyedinborough / aenetmail

C# POP/IMAP Mail Client
370 stars 153 forks source link

Updated sample code. POP3-messages are numbered starting with 1 (not 0)! #149

Closed jitbit closed 10 years ago

andyedinborough commented 10 years ago

Yes, but since 1-based indexing is evil, the library accepts 0-based and adds 1 before converting it to a string to be used as the message ID:

https://github.com/andyedinborough/aenetmail/blob/master/Pop3Client.cs#L37 https://github.com/andyedinborough/aenetmail/blob/master/Pop3Client.cs#L68

The variable is an integer and named index to make this seem more apparent.

jitbit commented 10 years ago

Oh, sorry, missed that. Thanks for the prompt answer. Sorry.

andyedinborough commented 10 years ago

;] No worries, thanks for reaching out!