Mutt is a text-based email client for Unix-like systems.

learn more… | top users | synonyms

22
votes
1answer
5k views

Mutt: how to safely store password?

My .muttrc file looks something like this one or see below a glimpse. I am hesitant with the password. How should I store my password to use it with mutt? set imap_user = "username@gmail.com" set ...
11
votes
3answers
1k views

Why does mutt retain deleted emails in view until you “sync your mailbox” using $?

Every other mail client I have used will remove emails from my sight when I delete them. If I change my mind and want the email back, I can always go look for it in the trash. Why does mutt continue ...
9
votes
3answers
321 views

Search for mail content with mutt

Is it possible to use to search for specific mail content using built-in functionality of Mutt? Or, as last resort, how can I configure grep to be used in Mutt ? The documentation only mentions the ...
8
votes
3answers
252 views

Send email written in markdown using mutt

Sometimes I need to send a fragment of code on google-group inline. Text does not help here; I can type it in markdown, convert it to html (using pandoc etc.), attach to mutt as text/html and send it. ...
8
votes
1answer
668 views

Continuous use of mutt

I would like to use mutt continuously, allow me to explain what I mean with an example. My typical workflow is this: Open up mutt Compose a message Press y to confirm send action ... wait! Compose ...
7
votes
1answer
894 views

Open html attachments externally in mutt

I recently managed to set up the my mailcap so that mutt can show html e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is ...
7
votes
1answer
1k views

How to really easily save all tagged attachments in mutt?

You can save all attachments via tag all attachments via hitting t ; s choose destination directory and hit a (all) This works but has following severe side effect: you have to hit n-times enter ...
7
votes
1answer
482 views

How can I generate email statistics from mutt header cache?

When configured accordingly (set header_cache=) mutt saves the mail headers in a cache file. That could be used to generate mail statistics. Does anybody know something about the file format? Are ...
7
votes
1answer
569 views

How to make Firefox open mailto: links with mutt in terminal

All I want to do is pass mailto: links to urxvt -e mutt -F ~/path/to/muttrc with the rest of the mailto: URL appended. I've tried every script I can find online that purports to do this, from simple: ...
6
votes
1answer
1k views

How can I make mutt show Date field of mail on the index screen?

I'd like to see the mail's date in the list that appears when I start mutt. How can I do that?
6
votes
1answer
794 views

Rename mailboxes in mutt

I'm using mutt with mutt-patched to manage 5 different Gmail accounts. For each of this accounts, I have INBOX as a mailbox with the mailboxes +INBOX configuration statement for each one. Then, I have ...
6
votes
1answer
166 views

mutt: Use gpgme or classic gpg?

Mutt's wiki on GnuPG integration and many other places (like default on Debian) use the classic way of connecting mutt to gnupg. That is, one configures a bunch of commands to call gpg directly. On ...
6
votes
1answer
552 views

sorting threads in mutt

I'd like to have mutt sort messages newest first, and have threads displayed with the newest message at the top of the thread. Right now I have the message list in the correct order, but the ...
5
votes
5answers
2k views

How do I configure mutt to display the date header in my local time zone in the pager?

When I view a message in the pager mutt displays the time in the Date header in UTC rather than my local time zone. The index view displays the local time correctly. I found this old mailing list post ...
5
votes
3answers
1k views

Saving a email as file in mutt?

When I press S in mutt, it saves the mail to a mail folder format (cur/ tmp/ new/), but I want a single file to be saved, just like how the attachment is saved, is that configurable?
5
votes
1answer
88 views

Mutt: select multiple messages

I am looking for a way to select multiple messages in Mutt. For example select the first and the last message would select a whole block of messages. Possible also to select by regexp for subject. I ...
5
votes
1answer
581 views

How to pipe text for a Mutt email body, then edit the email interactively?

I've been trying to figure out how to start Mutt in such a way that it's just like starting up an interactive Mutt and creating a new email, then copying the output of git request-pull into the body ...
5
votes
3answers
356 views

mutt: return to index after deleting or saving message in pager view

After deleting or saving a message in pager view in the MUA mutt, the program remains in pager view and jumps to the next message in the current folder. Can this default behavior be changed so that ...
5
votes
2answers
2k views

How to switch mailboxes in mutt?

I want to switch between "Sent" mailbox and current mailbox, I use the maildir type. It's best If there could be a macro bound to a shortcut key
5
votes
1answer
219 views

Rebinding “clear prompt” in mutt

By default, when entering information at the command prompt in mutt, you can clear the prompt with Ctrlg, as described in the manual: ^G n/a abort I have been trying to bind ...
5
votes
1answer
1k views

Changing SMTP authentication in mutt based on From e-mail address

I use mutt as my e-mail reader, and nbSMTP as my SMTP client. I check e-mail from a half dozen accounts and sort them into miscellaneous folders in my maildir. Some of the folders are ...
5
votes
2answers
280 views

mutt: save message to specific folder

I have several folders defined in Mutt: mailboxes "~/Mail/inbox" mailboxes "~/Mail/sent" mailboxes "~/Mail/archive" I can save (move) a message to archive, by pressing ...
5
votes
1answer
90 views

bold text when using 256 colors

I am configuring colors in Mutt, but I think my problem is general to linux terminal. For the 16 predefined colors (such as red) I can make it bold, by specifying brightred However, when using 256 ...
5
votes
2answers
684 views

local email storage syncing to imap - mutt-friendly

Summary My problem: I want to read email offline with my choice of client (mutt), but I want actions like moving emails, etc. to be kept in two-way snc with an imap server. My question: Is there a ...
4
votes
2answers
2k views

Opening .eml files with mutt

How should one open .eml files in linux ? I'm not sure if mutt can handle it ? UPDATE I worked it out partially , by creating a new mailbox: mkdir -p a/{cur,tmp,new} And place the eml file in ...
4
votes
1answer
46 views

mutt: define which headers are displayed

When composing a message in mutt, I see the following headers: From: To: Cc: Bcc: Subject: Reply-To: Fcc: ~/.mail/sent Mix: <no chain defined> Security: None ...
4
votes
1answer
1k views

Pretty print mails from mutt?

I know that I can configure a print command in Mutt via .muttrc, e.g.: set print=ask-yes set print_command="..." But what print command should I use for pretty printing? Well, a2ps output seems a ...
4
votes
2answers
152 views

How to tell mutt not to wait for an attachment program to return?

I use this line for images in my mailcap: image/*; eog %s &; but mutt immediately deletes the temp file and eog can’t load it. When I remove the & mutt waits for eog to be closed until it ...
4
votes
1answer
3k views

mutt responsive way to refresh inbox

Using mutt with Gmail I "check for e-mail updates" sometimes through the $ binding (sync-mailbox), sometimes just by using c (change folder) and just supplying = (defaults to MAILBOX) as the IMAP ...
4
votes
1answer
418 views

Open message with given message-id from command line in mutt

I have the value of the Message ID header of a particular message in my mutt's inbox and I want to open it with a one shot mutt command, read and close. Currently, I open mutt, do a with ~i ...
4
votes
1answer
348 views

Modify an incoming mail from text/plain to text/html

I'm using mutt to process my mail. There is one sender which declares the wrong content type. The mail arrives with Content-Type: multipart/alternative; boundary=--… and has two parts. They are ...
4
votes
2answers
537 views

Run command when checking for new mail in mutt

I'd like to run a command (specifically imapfilter) whenever Mutt is checking for new email, to avoid getting "wrong" messages about email in =INBOX which hasn't been filtered yet.
4
votes
1answer
236 views

mutt sidebar: expand/collapse folders

Is there a way to expand/collapse a single folder or all folders in the mutt-patched sidebar? I couldn't find anything about this in the sidebar documentation.
4
votes
1answer
201 views

Mutt: can I define my own rules for quoted message detection?

I recently started using mutt with my gmail IMAP mail address. Because I loved it so much, I also set it up with my college email address. This, sadly, is hosted by the college ICT team under ...
4
votes
0answers
13 views

Why mutt keeps asking for imap username and password?

Unsetting mutt's configuration variables imap_user, imap_pass (and perhaps preconnect, imap_authenticators as well) via an account-hook . "unset ... " call, seems to be common practice, if not a ...
3
votes
1answer
454 views

What does it mean for an email message to be “old”?

I just recently converted my mbox over to Maildir, and when I opened up mutt, I saw an 'O' flag on some messages. Looking this up, I find that it means the message is marked as "Old". However as ...
3
votes
1answer
66 views

Separate .muttrc into parts

My .muttrc file is starting to get quite large. What I would prefer is to create a ~/.mutt/config directory to store various config files for the account, status bar, composition,... etc and then ...
3
votes
1answer
44 views

Quoting text with > in mutt

Currently when I reply to a message, my mutt is quoting using > as following On Sunday ... Mojo Jojo wrote >Hey Powerpuff girls I want a space just after >, e.g. On Sunday ... Mojo Jojo ...
3
votes
1answer
255 views

Using mutt to fetch email from hotmail?

OK so I have mutt installed. But can't properly configure my hotmail acccount. I need some sample for hotmail configuration.
3
votes
1answer
497 views

How to run mutt via ssh without going through an interactive shell

Mutt depends on curses according to this here, my discussion with Michael: @hhh: ssh hhh@server.com mutt <--- what is wrong here? trying to run mutt there... @MichaelMrozek: mutt uses curses, ...
3
votes
1answer
65 views

Are there any alternatives to mutt?

I really like the idea of Mutt, reading mail in the terminal. I'm not really pleased with some inconsistencies and the imap handling. I set about trying to find some alternatives to mutt, but I can't ...
3
votes
2answers
138 views

mutt: conditional date format in “index_format”

I have following value set for index_format in mutt: "%Z %{%Y %b %e %H:%M} %?X?(%X)& ? %-22.22F %.100s %> %5c " which displays date in the format as 2013 Dec 5 I was wondering whether ...
3
votes
2answers
551 views

mutt: mark as read and delete

I discard some messages without reading them. After deleting said messages, however, I am soon alerted to the presence of unread mail in my trash can. Is there a way to either: disable the alert ...
3
votes
1answer
199 views

How to use expandos in backtick shell command

In my .muttrc I have attribution set to emulate Outlook-style message quoting like this: set attribution="\n\n-----Original Message-----\nFrom: %f\nSent: %d\n%t\nSubject: %s\n" However, the %t ...
3
votes
1answer
33 views

Center Mutt pager horizontally

Is there a way to horizontally center emails when reading them in a larger terminal using mutt? I'm not interested in centered justification of the text in the email, but I am interested in forcing ...
3
votes
1answer
438 views

Mutt imap multiple account

My first question on this site, I come quickly. I'm a fan of command line tools and text-based application. I use tmux with a minimalist tiling wm is qtile, I can not change the environment. I'm a ...
3
votes
1answer
438 views

mutt: rename IMAP folder

How does one interactively rename an IMAP folder within the mutt MUA? Currently, if I want to change a folder name, I use the gmail web browser interface, but this is rather inefficient. Is there an ...
3
votes
1answer
394 views

Mutt silently failing when trying to send an e-mail from command line

I'm trying to send and e-mail from mutt from command line using following command: mutt -F /my/path/to/muttrc -s "Hello" an@email.com < test.txt But nothing happens. Mutt doesn't display any ...
3
votes
1answer
75 views

macro: mutt freezes

I am experiencing a strange problem with my new macro in mutt. The following macro works OK. s moves message to my archive folder immediately macro index s ":set confirmappend=no delete=yes ...
3
votes
1answer
360 views

Peculiar issue with mutt & my_hdr From:

I've been pulling my hair out for hours trying to figure this out and I'm not entirely sure this is a unix issue (perhaps someone could enlighten me) First off, I started from scratch installing mutt ...