Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Reopened Feature: Redundant exceptions at Message.Process() [1424]

$
0
0
Hello,I'm trying to download messages from a GMail account with the following IMAP search query:"FROM some@emailaddress.com SINCE 19-Nov-2012"When I call Process() on each message of the result (or use the Search function second argument) I get exceptions on (I guess) every single message. The exceptions are sometimes ArgumentException complaining about key cannot be null for dictionary.findentry, and sometimes exception about dictionary already contains the given key.Before it was working well as I remember.If this cannot be reproduced or figured about at you, what am I doing wrong, or what did I miss?Edit:I downloaded the source, so that I could debug into it. The problem is caused by mails which has a first line as "* 7004 FETCH (BODY[] {154763}". In this case in EmailParser.cs:93 the _headerLastKey is null, so the ArgumentException is thrown.Secondly, if a mail has got multiple "Received:" header (my sample mail had about 4 or 5), line EmailParser.cs:81 throw an exception about key already exists.I hope now you'll be able to fix this.Please, if possible, send me the DLL if the fix is ready, because it is quite urgent.Thanks,Zoltán

Viewing all articles
Browse latest Browse all 1952

Trending Articles