nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] new mhmail

2012-06-16 17:50:22
David Levine <levinedl(_at_)acm(_dot_)org> writes:
mhmail(1) has been replaced on master.

SYNOPSIS
mhmail [addrs ...] [-body text] [-cc addrs ...] [-from addr]
[-subject subject]
[switches for post ... | [-profile [switches for send ...]]
[-version] [-help] [-debug]

It has these differences from the old mhmail:
* Instead of silently not sending an empty message, notifies user
"mhmail: empty message not sent, use -body '' to force."
* The old mhmail dropped a trailing newline from the -body argument.
* Supports all post(8) (by default, without -profile) or send(1)
(with -profile) options.
* Optionally (with -profile) obeys the users profile, including
AliasFile and send entries.
* Adds -debug option for debugging (sending, not incorporating new mail).
* Drops support for undocumented -queue option.

To do:
* add support for undocumented -resent old mhmail switch
* add -attach file ... switch


May I be so bold as to suggest additional switches:

  -send -and -nosend (with -send being the default, if you like)

   --foo bar (adds a component named "foo" with value, "bar". (This notation is
   analogous to one used in pick).

   -file path (where the draft goes) (implies -nosend)

With those features the program becomes a fairly powerful draft generation
utility. What you have is already very close to that).

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>