Bug #20

Fetching message id causes NULL string error

Added by David Verhasselt 407 days ago. Updated 406 days ago.

Status:Resolved Start:07/25/2009
Priority:Normal Due date:
Assigned to:David Verhasselt % Done:

0%

Category:- Spent time: -
Target version:0.3

Description

[info] Mail 9228 of 14038, uid unknown, message id unknown. Download.
[info] Mail 9229 of 14038, uid unknown, message id unknown. Download.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
[info] Mail 9230 of 14038, uid unknownAborted
Probably when finding a mail with the same message ID in the following line:
mr = maildb->get_mail(envelope->message_id);

If envelope->message_id equals 0 or NULL, this is the error that would be shown. Message ID might be NULL if the mail is malformed.

Associated revisions

Revision d64993ac64f7cc8d983d7f6b6b14f5a91aab4d25
Added by David Verhasselt 406 days ago

Ignore mail without message-id (fixes #20).

History

Updated by David Verhasselt 406 days ago

  • Status changed from Assigned to Resolved
  • Target version set to 0.3

We fixed the error by ignoring the mail, but this problem still spawns issue #21 "If message-id is empty, the mail isn't saved".

Also available in: Atom PDF