leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
441 stars 48 forks source link

Attachment not found #191

Closed Anachron closed 3 years ago

Anachron commented 3 years ago

I've accidentally added a wrong attachment path and sent the mail, now the recipient received a line with # cannotopen (path) which looks ugly.

Is it possible to mute errors like this or even prevent me from sending mails with attachments that cannot be read?

leahneukirchen commented 3 years ago

Hm, trying to reproduce this I get:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----_=_6cc04cbb64e51ce3738d8d8a_=_"

This is a multipart message in MIME format.

------_=_6cc04cbb64e51ce3738d8d8a_=_
mmime: error attaching file '/etc/issuez': No such file or directory

------_=_6cc04cbb64e51ce3738d8d8a_=_--

But status is 0, so this should be fixed and then reported (or even made fatal).

Anachron commented 3 years ago

Yep, I believe this should be a trivial fix? It not I can write a simple wrapper running "test -f".