View previous topic :: View next topic |
Author |
Message |
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Fri Sep 21, 2018 11:50 am Post subject: [SOLVED] mutt cycle through some mailboxes |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Sep 21, 2018 12:18 pm Post subject: |
|
|
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 |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Fri Sep 21, 2018 12:34 pm Post subject: [SOLVED] mutt cycle through some mailboxes |
|
|
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 |
|
|
|