You are not logged in.

#1 2008-05-08 15:55:06

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

[SOLVED] Reading sent messages in Mutt

Hi, I've set up mutt mostly according to the wiki article. I can't seem to be able to access sent messages. The sent messages appear as a single file in the Mutt folders listing... I have a file called "sent" in my ~ which is a plain text file that contains all my sent messages. I can read it by catting it or by opening it in vim, but I'd like to be able to read it straight from within Mutt.

When I try to open it in Mutt, it just tells me to not delete the file, and that's all.

Any ideas?

Last edited by foxbunny (2008-05-08 22:55:20)

Offline

#2 2008-05-08 18:50:38

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: [SOLVED] Reading sent messages in Mutt

I suggest you try to copy your sent messages in mutt into another folder, and then rename that new folder to "sent".  Maybe there went something wrong, after sending the first mail and saving it to sent... I assume, you use mbox_type=Maildir as written in wiki, is it right? Don't forget to back up smile

Last edited by drag0nl0rd (2008-05-08 18:51:16)

Offline

#3 2008-05-08 20:58:19

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: [SOLVED] Reading sent messages in Mutt

drag0nl0rd wrote:

I suggest you try to copy your sent messages in mutt into another folder, and then rename that new folder to "sent".  Maybe there went something wrong, after sending the first mail and saving it to sent... I assume, you use mbox_type=Maildir as written in wiki, is it right? Don't forget to back up smile

Sorry I seem to have failed to elaborate. The sent mail seems (I'm not sure, I'm new to this) to be saved as mbox file rather than maildir... All sent mail is just saved as a continuous stream in a single _file_.

EDIT: Oh, sorry, I missed the part where you say mbox_type. Ok, I'll try to convert the sent mail to Maildir format.

Last edited by foxbunny (2008-05-08 20:59:20)

Offline

#4 2008-05-08 21:39:26

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: [SOLVED] Reading sent messages in Mutt

Ok, solved it. Thanks, drag0nl0rd.

The things I had to do were to:

1. get mb2md script from AUR
2. convert ~/sent (file) to ~/mail/sent/ (dir)
3. add this to .muttrc:

set record="~/mail/sent"

The 'record' option overrides the slightly dumb default of "~/sent" for sent items.

Offline

#5 2008-05-08 22:52:10

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: [SOLVED] Reading sent messages in Mutt

Nice, I'm glad it work's for you smile
Another small tip: if your .muttrc contains

set folder=~/mail

then it's posible to use the shortcut "+" in the config file for this folder. So in your case

set record=+sent

You may want to rename the name of this thread to "[solved] ...."

Offline

#6 2008-05-08 22:55:38

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: [SOLVED] Reading sent messages in Mutt

Good point (both)

Offline

Board footer

Powered by FluxBB