Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mutt cycle through some mailboxes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Sep 21, 2018 11:50 am    Post subject: [SOLVED] mutt cycle through some mailboxes Reply with quote

This probably should be asked in a mutt list but anyway I'll try here. If I type 'c' on mutt it suggest by default a folder where there's new e-mail. If I press enter it opens that folder and if I type c again it suggest another folder where there's new e-mail. This way it goes through all the folders where there's new e-mail.

I quite like this behavior, the only thing I'd like to change is to ignore some folders (Trash for example). Is there anyway of doing this, short of marking all mail in the trash as read?


Last edited by potuz on Fri Sep 21, 2018 12:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Sep 21, 2018 12:18 pm    Post subject: Reply with quote

potuz ...

I don't think I've ever had 'Trash' (or anything other than 'INBOX') offered via 'change-folder', I expect this is because I define 'mailboxes' to be the INBOX's of the various locations mail is delivered. You should be able to do the same and so (hopefully) effect a similar behavior, so something like:

~/.muttrc:
mailboxes = +foo-local/INBOX +baa-local/INBOX +bing-local/INBOX +bong-local/INBOX

send-hook "(~t @)" 'set record="+Sent"'
folder-hook ~/mail/foo-local/INBOX 'set folder="~/mail/foo-local"'
folder-hook ~/mail/baa-local/INBOX 'set folder="~/mail/baa-local"'
folder-hook ~/mail/bing-local/INBOX 'set folder="~/mail/bing-local"'
folder-hook ~/mail/bong-local/INBOX 'set folder="~/mail/bong-local"'
folder-hook . 'set postponed="+Drafts"'

HTH & best ... khay
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Sep 21, 2018 12:34 pm    Post subject: [SOLVED] mutt cycle through some mailboxes Reply with quote

khayyam wrote:
potuz ...

I don't think I've ever had 'Trash' (or anything other than 'INBOX') offered via 'change-folder', I expect this is because I define 'mailboxes' to be the INBOX's of the various locations mail is delivered. You should be able to do the same and so (hopefully) effect a similar behavior, so something like:

~/.muttrc:
mailboxes = +foo-local/INBOX +baa-local/INBOX +bing-local/INBOX +bong-local/INBOX

send-hook "(~t @)" 'set record="+Sent"'
folder-hook ~/mail/foo-local/INBOX 'set folder="~/mail/foo-local"'
folder-hook ~/mail/baa-local/INBOX 'set folder="~/mail/baa-local"'
folder-hook ~/mail/bing-local/INBOX 'set folder="~/mail/bing-local"'
folder-hook ~/mail/bong-local/INBOX 'set folder="~/mail/bong-local"'
folder-hook . 'set postponed="+Drafts"'

HTH & best ... khay

Thanks! indeed that was the culprit, I generate a file muttrc.mailboxes dinamically and the script was not filtering Trash correctly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum