<<< Date Index >>>     <<< Thread Index >>>

Re: send-hook not setting $from



* On Thu, Dec 04, 2003 Eugene Lee (list-mutt@xxxxxxxx) muttered:
>       send-hook . 'set from=me@xxxxxxxxxx'
>       send-hook '~C abuse@xxxxxxx' 'set from=me+aol@xxxxxxxxxx'

                                      use my_hdr

        set from = me@xxxxxxxxxx
        send-hook . 'unmy_hdr from'
        send-hook '~C abuse@xxxxxxx' 'my_hdr From: me+aol@xxxxxxxxxx'

> Then I launch Mutt fresh, and send an email to "abuse@xxxxxxx".  The
> expected From: header generated by Mutt should be "me+aol@xxxxxxxxxx".
> Instead, the From: header still says "me@xxxxxxxxxx". If I abort the
> message and send another email to "abuse@xxxxxxx", the From: header
> changes to "me+aol@xxxxxxxxxx" as expected.

You won't have that problem with my_hdr.

> I don't have this problem if I manually change the From: header using
> my_hdr.

indeed. That is why you should use my_hdr in the first place.

Michael
-- 
    if (argc > 1 && strcmp(argv[1], "-advice") == 0) {
        printf("Don't Panic!\n");
        exit(42);
    }
(Arnold Robbins in the LJ of February '95, describing RCS)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key