Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Easily filter streams of mail (be it a mailing list or mail from a certain source (, for example) into folders WITHOUT then my then simply ignoring that folder.

    Dunno if this will do for you, but I have the following contraption in my .muttrc:

    mailboxes =Inbox =correspondence =geekery =postponed =spam =work

    macro pager c '<change-folder>?<toggle-mailboxes>'
    macro index c '<change-folder>?<toggle-mailboxes>'

    This registers each of my folders, and then patches the change-folder shortcut so that it will immediately toggle to show the list of registered mailboxes instead of the directory browser. (You can always toggle these two views using the Tab key.)

    OK, I lied. What I actually have is this:

    source 'cd ~/Mail ; for box in * ; do echo mailboxes =/$box ; done |'

    So the mailboxes list is actually autogenerated on launch. Note that the echo includes mutt’s = shortcut for $folder, so this particular line assumes set folder=~/Mail/, but all that’s actually needed is that $folder and the cd there are kept in synch. Oh, and make sure $folder is set ahead of time.

    Highlight email which are directly interesting to me (CC’d to me, has my name in it, contains certain keywords) without also pulling them out of their normal folder.

    You can do that using color index fg bg pattern in .muttrc, where the pattern syntax allows you to match the kinds of things you mentioned.