yoshi wrote:
 > I have a virtusertable and prefer to send mail from a mail alias. How can
 > I change the From: header? In mutt I use something like:
 > 
 > set from = 'virtu...@host'
 > my_hdr From: Full Name <virtu...@host>
 > 
 > Sorry for that trivial question, but I found no answer so far.

mh doesn't have a trivial answer for this.

you can either:
    - add your new From: header manually, when you
        edit your draft (perhaps you can define an editor
        macro to help with this), but this will become tiring.
    - write a script, which you invoke via the .mh_profile:

        Editor: my-mh-edit
        my-mh-edit-next: vi

      the my-mh-edit script should massage the draft file,
      whose name it gets in $DRAFT, add the From: line, and
      then it should invoke your favorite editor.  the
      second line (my-mh-edit-next) keeps your script from
      running twice if you use 'e' from the whatnow? prompt.

i'd include a copy of my script, except that it's far to ugly
and complex for what you want, because it does different things
based on what folder i'm in when i compose the message, can add
Reply-to:, From:, Fcc: headers, etc.   i'm pretty sure there's
a simpler version floating around, perhaps one of jerry peek's
scripts.

paul
=---------------------
 paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 28.8 degrees)


_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to