leahneukirchen / mblaze

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

mcom: check if a draft was found when invoking `mcom -r` #169

Closed nmeum closed 4 years ago

nmeum commented 4 years ago

Without this patch mcom -r would invoke $EDITOR on a directory if the maildir did not contain any drafts. To prevent this from happening, check if a draft was found before performing any further processing. If not, terminate mcom with an error message.