Re: Threading of forwarded messages

Subject: Re: Threading of forwarded messages

Date: Wed, 23 Jan 2019 23:46:24 +0200

To: Örjan Ekeberg, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Tue, Jan 22 2019, Örjan Ekeberg wrote:

> Hi,
>
> Let me first say that I am a very happy user of notmuch+emacs.  Once the
> initial setup and configuration was done, usage has been a very pleasant
> experience.  It daily saves me from getting lost in the constant torrent
> of incoming e-mail, where most need replies or to be forwarded to others
> to deal with.
>
> One thing that I have not been able to configure is the handling of
> forwarded messages.  Forwarded messages are archived as new messages,
> not linked to the messages being forwarded.  This makes it hard to keep
> track of which messages I have forwarded (and therefore is in the hands
> of someone else).  I would like the messages to be linked into the same
> thread.
>
> From what I understand, it would be sufficient if
> notmuch-mua-new-forward-messages (or something further down the call
> chain) would add the Message-Id of the forwarded message to the
> References header line of the new message.  This is what happens when
> using reply instead of forward.

notmuch-mua-new-forward-messages would be the place adding message-id's
to the references header (perhaps where 'appropriate subject' is added)
probably not much work but SMOP anyway ;/

>
> Manually adding such a references-head before sending seems to have
> the desired effect of linking them into the same thread.  Also, from
> what I can see, gmail does indeed include such a Refrerences-head when
> doing forward.
>
> Adding to the wishlist; it would be nice if forwarded messages could
> also be tagged as "forwarded", much like how replied messages are tagged
> "replied".  I guess this could be done via some sort of forward-hook,
> but I can not find anything like this.

replied is added in notmuch-message-mark-replied called via 
message-send-hook -- and notmuch-message-mark-replied looks for In-Reply-To
header and some other stuff (did not look deeply enough) to determine
whether to add notmuch-message-replied-tags... and it looks this hook
is run to all messages to be send...

...cannot say directly whether some other message processing could be used
to do to add "forwarded-tags" -- or alternatively making notmuch-send-hook
buffer-local to the message buffer created by
notmuch-mua-new-forward-messages and then just add-hook'ing code to 
do the tagging operation at send time.

Marked the replied message with notmuch::wishlist in 
https://nmbug.notmuchmail.org/status/

Tomi

>
> /Örjan
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: