You are not logged in.

#1 2013-11-13 21:03:57

Paloran
Member
Registered: 2011-10-17
Posts: 24

[SOLVED] Mutt - copy sent message to corresponding folder

I've been using mutt for some days and i'm wondering if there is any trick to show the complete message thread in mutt.

If i write a mail to someone, and he replies, and so on, i have a message thread in my inbox with the mail i got, and in my "sent" folder a thread with the mails i sent. I'm having a gmail account. I'm downloading my mails with offlineimap. Does anyone has an idea to solve this problem? Maybe a little shell script that moves the mail around, a mutt configuration - i'm happy with any solution you can offer me :-)

Last edited by Paloran (2013-11-15 16:44:42)

Offline

#2 2013-11-13 21:31:47

Vain
Member
Registered: 2008-10-19
Posts: 183

Re: [SOLVED] Mutt - copy sent message to corresponding folder

Hi,

you can use a hook to use the current folder as the folder to save messages in:

folder-hook . 'set record="^"'

That "^" will expand to the folder you just switched into. Now, when you send a mail, it should get saved in, say, "INBOX" instead of "Sent".

(This is documented somewhere, but I can't find it right now.)

Offline

#3 2013-11-13 23:12:22

Paloran
Member
Registered: 2011-10-17
Posts: 24

Re: [SOLVED] Mutt - copy sent message to corresponding folder

That works only for the messages that i write from now on and has no effect on the previous mails. And if i write a mail once with gmail (f.e. with my smart phone…) - then it is in the sent folder only, is it?

Offline

#4 2013-11-14 08:36:56

Vain
Member
Registered: 2008-10-19
Posts: 183

Re: [SOLVED] Mutt - copy sent message to corresponding folder

Right.

You could periodically filter all your mail using something like procmail (see here, for example). Not very elegant, but hey...

I don't know of any way to show multiple mailboxes at once in Mutt (i.e., "merge" your INBOX and Sent folders).

Offline

#5 2013-11-14 08:38:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Mutt - copy sent message to corresponding folder

Vain wrote:

I don't know of any way to show multiple mailboxes at once in Mutt (i.e., "merge" your INBOX and Sent folders).

notmuch-mutt.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-11-14 13:03:17

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Mutt - copy sent message to corresponding folder

jasonwryan wrote:
Vain wrote:

I don't know of any way to show multiple mailboxes at once in Mutt (i.e., "merge" your INBOX and Sent folders).

notmuch-mutt.

Another option is the Gmail specific "All Mail" folder. Which probably offlineimap is syncing unless you have specified otherwise in the settings.

Offline

#7 2013-11-15 16:44:25

Paloran
Member
Registered: 2011-10-17
Posts: 24

Re: [SOLVED] Mutt - copy sent message to corresponding folder

x33a wrote:
jasonwryan wrote:
Vain wrote:

I don't know of any way to show multiple mailboxes at once in Mutt (i.e., "merge" your INBOX and Sent folders).

notmuch-mutt.

Another option is the Gmail specific "All Mail" folder. Which probably offlineimap is syncing unless you have specified otherwise in the settings.

No - i have disabled that option because i disliked the fact to have to mark my messages as read twice. I think i will play around a littlebit with notmuch-mutt - it looks interesting!

Offline

Board footer

Powered by FluxBB