X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=man%2Fsend.man;h=85b3164dfc8e3d7dab8295d63d7e81bc6bb85912;hb=e1aea389b23bc67d45838523de0726d85f7328d1;hp=c6a79868fb9c9bfdce7a366c38fcf508b8d19cb7;hpb=3d7993e40a34f52e2b6394c2f64ef0111ab886f7;p=mmh diff --git a/man/send.man b/man/send.man index c6a7986..85b3164 100644 --- a/man/send.man +++ b/man/send.man @@ -40,6 +40,8 @@ send \- send a message \&...] .RB [ \-version ] .RB [ \-help ] +.RB [ \-attach +.IR header-field-name ] .ad .SH DESCRIPTION .B Send @@ -63,6 +65,41 @@ profile component. Most of the features attributed to .B send are actually performed by .BR post . + +.PP +If a +.I header-field-name +is supplied using the +.B -attach +option, the draft is scanned for a header whose field name matches the +supplied +.IR header-field-name . +The draft is converted to a MIME message if one or more matches are found. +This conversion occurs before all other processing. +.PP +The first part of the MIME message is the draft body if that body contains +any non-blank characters. +The body of each header field whose name matches the +.I header-field-name +is interpreted as a file name, and each file named is included as a separate +part in the MIME message. +.PP +For file names with dot suffixes, the context is scanned for a +.I mhshow-suffix- +entry for that suffix. +The content-type for the part is taken from that context entry if a match is +found. +If no match is found or the file does not have a dot suffix, the content-type +is text/plain if the file contains only ASCII characters or application/octet-stream +if it contains characters outside of the ASCII range. +.PP +Each part contains a name attribute that is the last component of the path name. +A +.I x-unix-mode +attribute containing the file mode accompanies each part. +Finally, a description attribute is generated by running the +.I file +command on the file. .PP If .B \-push @@ -263,7 +300,7 @@ for more information. .SH FILES .fc ^ ~ .nf -.ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u +.ta \w'%etcdir%/ExtraBigFileName 'u ^$HOME/\&.mh\(ruprofile~^The user profile .fi