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

learn more… | top users | synonyms

23
votes
1answer
6k 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 ...
12
votes
3answers
2k 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 ...
10
votes
3answers
768 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. ...
9
votes
3answers
693 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 ...
9
votes
2answers
154 views

mutt: define which headers are displayed (in compose)

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 ...
9
votes
1answer
854 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 ...
8
votes
1answer
222 views

mutt: automatically show new mesages

When I have mutt opened, I don't see new emails until I press a key, for example arrow down. Then new emails appear. Is there a way for mutt do recognize that new email has arrived, and display the ...
7
votes
3answers
2k 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?
7
votes
1answer
1k 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
2k 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?
7
votes
3answers
330 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 ...
7
votes
1answer
2k 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
128 views

How can I configure mutt to display my replies within threads?

While mutt has set sort = threads to show threaded, "conversation" style messages, it doesn't display one's own replies in the threads. Instead, you have to change to the Sent folder to see your own ...
7
votes
1answer
517 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
157 views

accessing Maildir locally with Mutt and remotely over IMAP simultaneously

I have Postfix + Maildir + Dovecot + IMAP on my mailserver. I am accessing my mailbox remotely over IMAP with one or more clients (Thunderbird). Additionally, on the server I have mutt configured for ...
7
votes
1answer
664 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
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 ...
6
votes
1answer
513 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 ...
6
votes
2answers
899 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 ...
6
votes
1answer
967 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
245 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
2answers
1k 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 ...
6
votes
1answer
863 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
2answers
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 ...
5
votes
2answers
3k 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 ...
5
votes
1answer
876 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 ...
5
votes
1answer
744 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
456 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
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
1answer
96 views

Greek characters in mutt's sidebar (mailboxes names sourced via offlineimap)

Mutt's sidebar, does not read properly Greek characters (mailboxes named by using Greek characters). Anyhow, there is no such problem inside both the index and the pager, where Greek ...
5
votes
2answers
174 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 ...
4
votes
2answers
249 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
4k 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
532 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
184 views

mutt: macro for saving messages to a folder

This is an expansion on my previous question. I have following macro, which will save tagged messages to my archive folder. macro index S ":set confirmappend=no ...
4
votes
1answer
424 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
632 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
314 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
222 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
63 views

Mutt: gmail archive

I want to recreate the gmail archiving method. I sync (using offlineimap) my inbox and my all mail folders, and, by archiving, I want to keep the one in All Mail and delete the one in inbox. Also, ...
4
votes
0answers
100 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 ...
4
votes
1answer
615 views

How to receive meeting invitations from Office365, so that they can be parsed and added to a calendar?

How to receive iCalendar (.ics or .ical) meeting invitations from outlook.office365.com, so that they can be parsed and added to a calendar (such as remind + wyrd)? I've searched long and hard for an ...
4
votes
1answer
776 views

Mutt: Automatically subscribe to IMAP mailboxes

I'm using a bunch of mailboxes in mutt which are populated by imapfilter. To avoid manual reconfiguration (by going to the folder list and pressing s at every new entry), I'd like to configure mutt to ...
3
votes
1answer
607 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
2answers
297 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
1answer
69 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
50 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
3answers
212 views

Script to email all matching files in a directory

Trying to set up a bash script to automate sending data files. Desired end result is to check a specified directory once per week, make a list of all Excel files modified within the last 2 days, and ...
3
votes
1answer
367 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.