summaryrefslogtreecommitdiff
path: root/src/Mutt:Sorting_Mail_Like_a_Boss.adoc
blob: ecf31f763fa28dfacf279e3fc47b8e10f89894f4 (plain)
    1 Mutt:Sorting Mail Like a Boss
    2 =============================
    3 :author: Aaron Ball
    4 :email: nullspoon@iohq.net
    5 
    6 
    7 == {doctitle}
    8 
    9 Mutt is a relatively difficult mail client to learn. However, as most if not
   10 all mutt users will tell you, once you've got the hang of it, no other mail
   11 client can come close to matching the efficiency and speed of command line mail
   12 (or any thing else in command line for the most part).  I recently started
   13 using mutt myself and just can't get over how efficient it is once you've got
   14 your configuration sorted out. Yesterday I easily cleaned out 800 emails in
   15 about five minutes using some very simple search terms (and no I didn't just
   16 delete randomly 800 emails).  Unlike the title of this post implies though, I
   17 am not amazing with mutt, but what I do know, however, can get me around very
   18 quickly.  Here's what I use nearly every day.
   19 
   20 
   21 [[tags]]
   22 === Tags
   23 
   24 Mutt supports this neat thing called tagging. It's basically the command line
   25 equivelant of multiselect (ctrl+click or shift+click).
   26 
   27 **To tag a message**, move the cursor to it and hit the _t_ key.
   28 
   29 **To tag a group of emails based on a pattern**, for example "Change Requests",
   30 hit capital __T__. You will see at the bottom of your mutt window __Tag
   31 messages matching:__. Type your tag term, hit enter, and you should see several
   32 highlighted messages now.
   33 
   34 Finally, **to peform an action on all tagged messages**, preceed the command
   35 letter (s for save/move, d for delete, N for new, etc) with a semicolon ( ; ).
   36 For instance, do delete all tagged messages, type __;d__.
   37 
   38 
   39 [[limit-filter]]
   40 === Limit (Filter)
   41 
   42 In mutt, you can do this really cool (though not novel in the slightest) thing
   43 wherein you filter the displayed messages by a regular expression.  You don't
   44 have to use a regular expression of course, but never the less it can be done.
   45 
   46 **To limit/filter the currently displayed emails**, head over to a directory
   47 you want to get a better filtered look at and press the _l_ key. You will see
   48 at the bottom of your mutt window ''Limit to messages matching: ''. Type
   49 whatever you want to limit to.
   50 
   51 Note here though that limit by default only searches mail meta data unless
   52 otherwise specified. This makes searches go much faster since most of the time
   53 you're just cleaning up your inbox by subject, receivers, and date. If you do
   54 want to search the body of your emails, preceed your search term with __~B__,
   55 and mutt will go the extra mile and search email bodies for you.
   56 
   57 
   58 Category:Linux
   59 
   60 
   61 // vim: set syntax=asciidoc:

Generated by cgit