Added check in send(1) of attach (default Nmh-Attachment) headers to
authorDavid Levine <levinedl@acm.org>
Fri, 14 Sep 2012 22:05:24 +0000 (17:05 -0500)
committerDavid Levine <levinedl@acm.org>
Fri, 14 Sep 2012 22:05:24 +0000 (17:05 -0500)
commit356f49083391bd018b6c5dfed21e59247b4cc74a
treec26880e359bc1432262deb3621e3e760557d9f43
parent7428828caf071831ea3caf1efb856c418929acc2
Added check in send(1) of attach (default Nmh-Attachment) headers to
ensure that only plain files are attached.  Otherwise, it is a fatal
error.  Note that whatnow's attach will continue to allow attachment
of directories because it expands those out to their contents.  It
doesn't check what the contents are, though.  That's why we needed to
add this check.

Also added a check to skip attach headers that are empty so that
they can be put in drafts, per Norm's request.
uip/sendsbr.c