Subject: | Error handling failure when message upload fails |
When a message upload failed in my script which uses
Mail::Box::Manager, it appears that the low-level Mail::IMAPClient
detected the problem, but the higher level functions did not. Here's
the transcript showing the end of the attempt to transmit the message:
Sent 14227 bytes
Read: 9 NO Message contains bare newlines
ERROR: 9 NO Message contains bare newlines
ERROR: Error trying to append: 9 NO Message contains bare newlines
Sending: 10 SELECT hp
Sent 14 bytes
Read: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
The failure happened because of the other bug I just reported, bug
regardless of the reason for the failure, it should have been detected
rather than silently accepted.