[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim's header rewrite

On Mon, Jun 03, 2002 at 10:03:10AM +0800, Michael C Alonzo wrote:
| > The proper place to achieve that is in your Mail User Agent (MUA,
| > e.g. mutt) and not in your Mail Delivery Agent (MDA, e.g. exim)
| > simply because your MDA doesn't know to what mail you're replying.
| > You need to sort the incomming mail into seperate folders and then
| > use mutt's mailbox-hook feature to set the From header depending
| > on the mailbox.
| ok. thanks, for pointing that
| > Personally, I would advice to investigate the first and look into
| > Mutt's mailbox-hooks.
| do you have an example?

I have an example of using mutt to set a different From: header.  All
mail goes out the same server, though, (my own machine->MX of

set realname="Derrick 'dman' Hudson" from='dman@dman.ddts.net'
set use_from

# reset the default settings.
# These must execute before the other hooks.
send-hook '~t ^.*$' unmy_hdr From
send-hook '~t ^.*$' set signature="~/util/script/sig_gen.py|"
send-hook '~t ^.*$' set pgp_sign_as = "1293A514"

send-hook '~t ^.*@iteams\.org$' \
    my_hdr 'From: Derrick Hudson <derrick.hudson@iteams.org>'

send-hook '~t ^exim-users@exim.org$' my_hdr 'From: dman <dsh8290@rit.edu>'

# [Former Co-op Employer]
send-hook '~t ^.*@[former_coop_employer]$' my_hdr 'From: Derrick Hudson <dhudson@[former_coop_employer]>'
send-hook '~t ^.*@[former_coop_employer]$' set pgp_sign_as = "[the_id]"
send-hook '~t ^.*@[former_coop_employer]$' set signature="~/.signature.ROS"

As you can see, I also want to use a different .sig and a different
gpg signature for stuff that was work-related.  My tests depend solely
on who the recipient (To: header) is.


Come to me, all you who are weary and burdened, and I will give you
rest.  Take my yoke upon you and learn from me, for I am gentle and
humble in heart, and you will find rest for your souls.  For my yoke
is easy and my burden is light.
        Matthew 11:28-30
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

Attachment: pgpOjPXHsIx1A.pgp
Description: PGP signature

Reply to: