Re: Emacs: prevent notmuch from tampering with message headers & settings

2021-05-19 Thread Tomi Ollila
On Wed, May 19 2021, Tory S. Anderson wrote:

> I've made a branch with a change that should avoid ruining existing
> behavior for anyone not trying to preserve their mail-user-agent. How can
> I submit this thing?

IIRC David already posted something on this mailing list.

but anyway; FYI, and reminder for others:

https://notmuchmail.org/contributing/

Tomi
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Emacs: prevent notmuch from tampering with message headers & settings

2021-05-19 Thread Tory S. Anderson
I've made a branch with a change that should avoid ruining existing behavior 
for anyone not trying to preserve their mail-user-agent. How can I submit this 
thing?

David Bremner  writes:

> "Tory S. Anderson"  writes:
>
>> I send mail with either global C-x m (compose-mail) or from my gnus
>> buffer when I reply to a message. In both cases, if I happen to have
>> visited a notmuch search result previously, it has changed my headers
>> and completion methods. Yeah, over-writing mail-user-agent seems to be
>> the case -- I see that is exactly what has happened. Any idea how can
>> I stop it?
>>
>> - Tory
>
> You can try adding something like
>
> (eval-after-load 'notmuch
>  (lambda () (setq mail-user-agent 'message-user-agent)))
>
> to your emacs startup file (e.g. .emacs.d/init.el)
>  
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Emacs: prevent notmuch from tampering with message headers & settings

2021-05-13 Thread David Bremner
"Tory S. Anderson"  writes:

> I send mail with either global C-x m (compose-mail) or from my gnus
> buffer when I reply to a message. In both cases, if I happen to have
> visited a notmuch search result previously, it has changed my headers
> and completion methods. Yeah, over-writing mail-user-agent seems to be
> the case -- I see that is exactly what has happened. Any idea how can
> I stop it?
>
> - Tory

You can try adding something like

(eval-after-load 'notmuch
 (lambda () (setq mail-user-agent 'message-user-agent)))

to your emacs startup file (e.g. .emacs.d/init.el)
 
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Emacs: prevent notmuch from tampering with message headers & settings

2021-05-13 Thread Tory S. Anderson
I send mail with either global C-x m (compose-mail) or from my gnus buffer when 
I reply to a message. In both cases, if I happen to have visited a notmuch 
search result previously, it has changed my headers and completion methods. 
Yeah, over-writing mail-user-agent seems to be the case -- I see that is 
exactly what has happened. Any idea how can I stop it?

- Tory

David Bremner  writes:

> web...@toryanderson.com (Tory S. Anderson) writes:
>
>> As an emacs user, I use notmuch for searching and indexing my mail,
>> and love it. The only problem is that every time I open a message in
>> notmuch, it overwrites my message configuration for sending mails. In
>> particular, it seems to change my headers, and my
>> completion-methods. I need to reset this every time right now. How can
>> I prevent Notmuch from messing with any of these?
>
> How are you sending mail?  Do you end up in notmuch-message-mode (in the
> mode line it looks like Message[Notmuch])?
>
> I see that notmuch.el overrides mail-user-agent, which I guess maybe it
> shouldn't.  For what it's worth, the code to do that is more than 10
> years old.
>
> d
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Emacs: prevent notmuch from tampering with message headers & settings

2021-05-13 Thread David Bremner
web...@toryanderson.com (Tory S. Anderson) writes:

> As an emacs user, I use notmuch for searching and indexing my mail,
> and love it. The only problem is that every time I open a message in
> notmuch, it overwrites my message configuration for sending mails. In
> particular, it seems to change my headers, and my
> completion-methods. I need to reset this every time right now. How can
> I prevent Notmuch from messing with any of these?

How are you sending mail?  Do you end up in notmuch-message-mode (in the
mode line it looks like Message[Notmuch])?

I see that notmuch.el overrides mail-user-agent, which I guess maybe it
shouldn't.  For what it's worth, the code to do that is more than 10
years old.

d
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Emacs: prevent notmuch from tampering with message headers & settings

2021-05-11 Thread Tory S. Anderson
As an emacs user, I use notmuch for searching and indexing my mail, and love 
it. The only problem is that every time I open a message in notmuch, it 
overwrites my message configuration for sending mails. In particular, it seems 
to change my headers, and my completion-methods. I need to reset this every 
time right now. How can I prevent Notmuch from messing with any of these?

- Tory
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org