-.TH WHATNOW %manext1% "January 12, 2014" "%nmhversion%"
+.TH WHATNOW %manext1% "January 17, 2014" "%nmhversion%"
.\"
.\" %nmhwarning%
.\"
.B ls [ls-options]
list files in the attachment working directory using the ls command
.TP \w'refilezzzzfolderz'u
-.B attach [-v [-a 0|1|2]] files
+.B attach [-v] files
add the named files to the message as MIME attachments; -v displays
-the mhbuild directive, using the optionally specified attachformat
-[-a] if that is also provided to
+the mhbuild directive that
.IR send (1)
+will use
.TP \w'refilezzzzfolderz'u
.B alist [-ln]
list the MIME attachments, either short, long [-l] or numbered [-n]
* pwd command and exists to allow the user
* to verify the directory.
*
- * attach [-v [-a 0|1|2]] files
- * This option attaches the named files to
+ * attach [-v] files This option attaches the named files to
* the draft. -v displays the mhbuild
- * directive, using the optionally specified
- * attachformat [-a] if that is also provided
- * to send(1).
+ * directive that send(1) will use.
*
* alist [-ln] This option lists the attachments on the
* draft. -l gets long listings, -n gets
X("cd [directory]", 0, CDCMDSW) \
X("pwd", 0, PWDCMDSW) \
X("ls", 2, LSCMDSW) \
- X("attach [-v [-a 0|1|2]]", 0, ATTACHCMDSW) \
+ X("attach [-v]", 0, ATTACHCMDSW) \
X("detach [-n]", 0, DETACHCMDSW) \
X("alist [-ln] ", 2, ALISTCMDSW) \
*/
int verbose = 0;
- int attachformat = 1;
char **ap;
if (attach == (char *)0) {
if (strcmp(*ap, "-v") == 0) {
++argp;
verbose = 1;
- } else if (strcmp(*ap, "-a") == 0) {
- ++argp;
- if (*(ap+1) == NULL ||
- ! isdigit ((unsigned char) *(ap+1)[0])) {
- advise(NULL,
- "ignoring attach -a without format argument.");
- } else {
- ++argp;
- ++ap;
- if ((attachformat = atoi(*ap)) > 2) {
- advise(NULL,
- "ignoring invalid attachformat value of %d",
- attachformat);
- attachformat = 1;
- }
- }
} else if (*ap[0] != '-') {
break;
}
(void)annotate(drft, attach, shell, 1, 0, -2, 1);
if (verbose) {
build_directive =
- construct_build_directive (shell, NULL,
- attachformat);
+ construct_build_directive (shell, NULL, 1);
}
} else {
(void)sprintf(file, "%s/%s", cwd, shell);
(void)annotate(drft, attach, file, 1, 0, -2, 1);
if (verbose) {
build_directive =
- construct_build_directive (file, NULL,
- attachformat);
+ construct_build_directive (file, NULL, 1);
}
}