Select a different sender (From) at reply time

classic Classic list List threaded Threaded
4 messages Options
Lele Gaifax Lele Gaifax
Reply | Threaded
Open this post in threaded view
|

Select a different sender (From) at reply time

Hi all,

I'd like to automatically force a particular sender when replying to a message
belonging to a mailing list I'm subscribed.

I'm using the GNU/Emacs MUA, and looking around I found the tip at
https://notmuchmail.org/emacstips/#index3h2, but I fail to see how to
recognize the "destination" address, in other words how to determine that "I'm
replying to a message that belongs to /that/ ML" within the advice, to replace
the sender only in that case.

Thanks in advance for any hint,
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
[hidden email]  |                 -- Fortunato Depero, 1929.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
David Edmondson David Edmondson
Reply | Threaded
Open this post in threaded view
|

Re: Select a different sender (From) at reply time

On Sunday, 2018-01-28 at 19:13:18 +0100, Lele Gaifax wrote:

> Hi all,
>
> I'd like to automatically force a particular sender when replying to a message
> belonging to a mailing list I'm subscribed.
>
> I'm using the GNU/Emacs MUA, and looking around I found the tip at
> https://notmuchmail.org/emacstips/#index3h2, but I fail to see how to
> recognize the "destination" address, in other words how to determine that "I'm
> replying to a message that belongs to /that/ ML" within the advice, to replace
> the sender only in that case.

The way that I do this is shown here:
        http://dme.org/data/notmuch/notmuch-sender.el

I always remove the initial “From” generated by notmuch and choose one
when I hit “send”. In some cases the choice is automatic, but otherwise
there is a prompt.

dme.
--
Please forgive me if I act a little strange, for I know not what I do.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Lele Gaifax Lele Gaifax
Reply | Threaded
Open this post in threaded view
|

Re: Select a different sender (From) at reply time

David Edmondson <[hidden email]> writes:

> The way that I do this is shown here:
> http://dme.org/data/notmuch/notmuch-sender.el

Thank you David, I will ad[ao]pt your solution!

> I always remove the initial “From” generated by notmuch and choose one
> when I hit “send”. In some cases the choice is automatic, but otherwise
> there is a prompt.

What is the reason for the explicit dme:notmuch-message-setup-hook, given that
dme:notmuch-message-send-hook replaces the "From:" header by its own?

ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
[hidden email]  |                 -- Fortunato Depero, 1929.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
David Edmondson David Edmondson
Reply | Threaded
Open this post in threaded view
|

Re: Select a different sender (From) at reply time

On Monday, 2018-01-29 at 12:18:15 +0100, Lele Gaifax wrote:

> David Edmondson <[hidden email]> writes:
>
>> The way that I do this is shown here:
>> http://dme.org/data/notmuch/notmuch-sender.el
>
> Thank you David, I will ad[ao]pt your solution!
>
>> I always remove the initial “From” generated by notmuch and choose one
>> when I hit “send”. In some cases the choice is automatic, but otherwise
>> there is a prompt.
>
> What is the reason for the explicit dme:notmuch-message-setup-hook, given that
> dme:notmuch-message-send-hook replaces the "From:" header by its own?

It's probably historical - I've used variants of this code for many
years.

At one point the code in the send hook would observe an existing From
address (so you can add one by hand to override the hook), but I never
found myself using that and so removed it.

dme.
--
You know your green from your red.
_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch