Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] mutt cycle through some mailboxes

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
potuz
Guru
Guru
Posts: 378
Joined: Sat Jan 30, 2010 2:00 am

[SOLVED] mutt cycle through some mailboxes

  • Quote

Post by potuz » Fri Sep 21, 2018 11:50 am

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.
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Fri Sep 21, 2018 12:18 pm

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:

Code: Select all

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
Top
potuz
Guru
Guru
Posts: 378
Joined: Sat Jan 30, 2010 2:00 am

[SOLVED] mutt cycle through some mailboxes

  • Quote

Post by potuz » Fri Sep 21, 2018 12:34 pm

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:

Code: Select all

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.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic