This acts like the DEFER config option, just from the command line.
.Fl A Ns Ar c
acts as a compatibility option for sendmail.
.It Fl b Ar mode
-Specifying
-.Fl b Ns Ar p
-will list all mails currently stored in the mail queue.
-All other modes are are ignored.
+.Bl -tag -width indent
+.It Fl bp
+List all mails currently stored in the mail queue.
+.It Fl bq
+Queue the mail, but don't attempt to deliver it.
+See also the
+.Sq DEFER
+config file setting below.
+.El
+.Pp
+All other
+.Ar mode Ns
+s are are ignored.
.It Fl D
Don't run in the background.
Useful for debugging.
char *sender = NULL;
struct queue queue;
int i, ch;
- int nodot = 0, doqueue = 0, showq = 0;
+ int nodot = 0, doqueue = 0, showq = 0, queue_only = 0;
atexit(deltmp);
if (optarg[0] == 'p') {
showq = 1;
break;
+ } else if (optarg[0] == 'q') {
+ queue_only = 1;
+ break;
}
/* else FALLTRHOUGH */
case 'D':
/* From here on the mail is safe. */
- if (config->features & DEFER)
+ if (config->features & DEFER || queue_only)
return (0);
run_queue(&queue);