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

learn more… | top users | synonyms

1
vote
1answer
12 views

How can I use an apostrophe in a send-hook for mutt?

I'm trying to set up a send-hook in mutt, with a sender with an apostrophe in it. This is legitimate in the username part at least. I have the following in muttrc. send-hook '~t "^foo@bar\\.com$"' ...
3
votes
1answer
32 views

How to automate mutt in removing old mailing-list emails?

In mutt I perform following sequence of steps: $ mutt -f imaps://imap.example.com username password [shift]+[D] ~C mailinglist1@domain.com [shift]+[D] ~C mailinglist2@domain.com (...) [shift]+[D] ~C ...
3
votes
2answers
45 views

Printing email messages from mutt — how to avoid line break?

I use mutt as email client, and recently decided to fix my email-printing setup. I know about Muttprint, but I decided not to use it. I came up with the following. On .muttrc, I have: set ...
0
votes
0answers
28 views

mbsync: retrieve password from a keyring and use a systemd service

I'm on Fedora23 and I've set up a systemd service, as explained in the isync page of Arch wiki, to schedule the run of mbsync every x minutes. I need it for Mutt. The service works fine when the ...
0
votes
0answers
17 views

git sendmail attachment

I tried to send attachments with git sendmail but unable to do that. I haven't found any way to send source files like abc.c etc with git sendmail. only *.patch was possible. I tried mutt but that ...
4
votes
2answers
45 views

Best way to delete select email messages from mbox file using script

I have an arbitrary email messages file in mbox format. I would like to periodically (end of the week), and automatically (via cron) purge messages from my "alerts" mbox file (new folder) just from ...
1
vote
0answers
29 views

How do I restart offlineimap?

I have offlineimap running on a cron job. Every once in a while it seems to get interrupted, and when that happens I can't restart it. If I try to run it from the terminal I get an error indicating ...
1
vote
1answer
27 views

Mutt Outlook messages distorted

I started using Mutt and the only issue I am having is that when I receive an email from an Outlook account, I get a bunch of headers and all of the HTML. It is very hard to read. what I want to do is ...
0
votes
0answers
42 views

`SMTP session failed: 501 5.5.4 connection. dafafkKHJDHJSnaf.50 - gsmp` error in mutt

My mutt was working fine a week ago. Suddenly it has stopped working with gmail. It throws the following error: SMTP session failed: 501 5.5.4 connection. v9sm74425825pfi.50 - gsmtp When I postpone ...
0
votes
1answer
20 views

Redraw pager when I hide the sidebar in Mutt?

I added a macro to my .muttrc that toggles the sidebar with b: macro index b "<enter-command>toggle sidebar_visible<enter>" macro pager b "<enter-command>toggle ...
1
vote
1answer
74 views

Produce bounce message when Sendmail fails

I'm trying to receive a bounce mail message when an outgoing message cannot reach smtp external server (due to my local internet connection problems). I send emails using: mutt (compose) - procmail - ...
2
votes
1answer
34 views

Sort emails by time in mutt

Currently my threads in mutt are sorted by descending order of date, but emails on the same date are sorted in ascending order of time. This is what I have in my .muttrc: set index_format="%4C %Z ...
2
votes
1answer
24 views

Why am i getting “No virtual folder, aborting” when I try to tag messages in Mutt?

I've been using the ` to open the tag prompt in mutt-kz. That was working this morning. Now, though, when I type ` I'm seeing No virtual folder, aborting. I'm not sure what this might be about or ...
1
vote
0answers
29 views

How to set up Mutt and Spamassassim

I've got Mutt to access and read my gmail, but in the inbox, it includes all the mail that the gmail interface hides in two tabs (I think they're called labels) called 'Social' and 'Promotions'. I'd ...
1
vote
0answers
15 views

Mutt retrieve without duplicates or deleting everything

I use the Ctrl+g keybinding to retrieve mail from my POP mail server. Whenever I do this, Mutt will ask me if I want to delete messages from the server. If I tell it "no", it will download all of the ...
1
vote
0answers
24 views

Can I alias or rename a folder as displayed in mutt?

I'm using offlineimap to sync a local Maildir and then using Mutt as my MUA. But some of my folder names include accents, and they're being stored garbled in Maildir. Terça becomes Ter&AOc-a. Is ...
0
votes
0answers
54 views

Mutt config: how to handle different mailboxes on same host

I have a problem using Mutt for different mailboxes on the same host. There seems to be an external authentication with the correct IMAP user, but then it always uses the first known user name to load ...
1
vote
0answers
74 views

Adjusting colors for mutt's status line in multi-account setup

Question How can mutt be configured correctly so, no matter the number of accounts it handles, color settings can be adjusted per account along with the folder-hooks? Details In a mutt ...
1
vote
0answers
25 views

Can mutt delete message locally but retain it on server?

When using mutt I don't want all the messages to be cached, which could take up a lot of disk space. But if I purge an email, it also gets deleted on the server side, which is undesired because I may ...
0
votes
1answer
29 views

Automating deletion of mail in mutt

How can I delete a group of mails from inbox, say that has been received on a particular date, via cmd line in mutt? Thanks in advance.
3
votes
1answer
24 views

How can mutt indicate the presence of all attachments?

Indicating the presence of attachments In mutt, I can tell an email has an attachment because it is indicated in the email's display itself: [-- Attachment #1 --] [-- Type: text/plain, Encoding: ...
0
votes
1answer
31 views

Why does mutt hang when running gpg in tmux?

I run mutt in tmux and when I run gpg to sign or encrypt, gpg shows a blank screen where I would expect to type my passphrase. I've straced gpg and it shows that it's hanging waiting on a socket ...
-1
votes
1answer
60 views

Mutt : render html within mutt

I wan't to render html within mutt but I haven't succeed configuring it yet. I wan't to use w3m so my .mailcap looks like : text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal; ...
1
vote
1answer
41 views

mutt: select top message on startup

Currently, when I start mutt, it selects the top unread message in the index. How can I configure mutt to select the top message (read or unread) on startup?
2
votes
1answer
92 views

Mutt and Postfix : relay access denied

I try to send mail with Mutt through my own mail server. My mail server run Postfix and Dovecot. I configured it by following this tutorial. I can send / receive email on my server with Gnome ...
1
vote
1answer
17 views

Don't show first line with common key bindings in mutt's menus

In the usual message index, mutt uses one line for displaying q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help Similar key bindings are displayed in other menus, e.g in the ...
1
vote
0answers
150 views

gpg: passwordless decryption works in terminal, but not in tmux based msmtp/mutt (can't open /dev/tty)

first try: (with --no-tty in my msmtp config) (reboot) head -n 1 ~/.gnupg/gpg.conf use-agent gpg agent is started: % systemctl --user status gpg-agent.service gpg-agent.service - GnuPG private ...
1
vote
0answers
192 views

How to enable secure authentication (ssl,tls,starttls) in nullmailer 1.0.5. and upgrade nullmailer to 1.11

I am using a linux based device where we use nullmailer to send email using smtp. nullmailer version: 1.0.5 User-Agent: Mutt/1.5.19 (2009-01-05) In the existing mechanism, our smtp server does not ...
3
votes
3answers
202 views

How do I tell Mutt to ask for a gpg passphrase?

I'm slowly migrating to mutt after years of Thunderbird and stumped by gpg. I have Mutt signing messages by default, but I don't get asked for a passphrase and then the message fails: gpg: can't ...
0
votes
1answer
27 views

Using corrected time in the “attribution” variable of mutt?

I receive quite a few email messages displaying UTC time within the "Date:" header. I found the following perl script by user hyperair, very useful to display a new header "Local-Date" for incoming ...
1
vote
0answers
32 views

highlight the current thread in mutt, but not in thread mode

A sample mail structure in mutt: - L1: thread1 mail1 - L2: thread2 mail1 - L3: thread2 mail2 (cursor here) - L4: thread3 mail1 - L5: thread1 mail2 - L6: thread3 mail2 - L7: thread1 mail3 - L8: ...
3
votes
1answer
76 views

How can I change the default “save” folder in Mutt?

By default, Mutt wants to archive messages to folders by sender name. So when I hit s it prompts me with Save to mailbox ('?' for list): =sendername. I'd like to have it default to ...
3
votes
2answers
31 views

How do I save a reply to an MBOX email to the same MBOX file in mutt?

Here is the use case. From time to time I read messages contained in an MBOX file using mutt. For the sake of this question I'll use the following to create an MBOX file for reference: curl -L ...
3
votes
1answer
125 views

mutt: Delay in emails delivery

It is the first time I am sending emails from Bash. For a test I have sent about 80 emails with mutt to (and from) my GMail address. Not all emails have been delivered in the 24 hours following me ...
2
votes
1answer
173 views

mutt send mail from command line, with headers inside text file

Can mutt send mail from command line without command line parameters, with subject, cc, bcc, reply-to, in-reply-to all defined inside mail.txt file with body of the message too (the same file format ...
0
votes
2answers
82 views

Can I send email in the background in Mutt while still being notified of errors?

Removing mutt's send delay I originally used mutt's built-in SMTP MTA. However, there is a considerable pause after hitting send. This can be disabled by using an external MTA with set ...
5
votes
2answers
143 views

Set terminal title from within Mutt?

With the help of Display command in xterm titlebar I've got gnome-terminal changing the title to reflect the running command, so that I can see which terminal Mutt is running it. But what I'd really ...
4
votes
2answers
56 views

Delete mails with attachments

Since I've limited quota on mail server, I'd like to delete large messages. I am thinking of the following flow: Tag all messages with attachments Delete the tagged messages. The mutt manual have ...
3
votes
1answer
103 views

Controlling the order in which files are put into an array

I have a script that grabs a bunch of time-stamped files and puts them into an array to be processed by Mutt and emailed to me. My problem is that the files are just randomly placed into the array ...
2
votes
0answers
21 views

How does Mutt decide if an email has been replied to?

Mutt places an r flag next to emails that I've replied to. However, sometimes it errs, and there is no flag next to an email that I have replied to. notmuch correctly identifies the thread. If I move ...
2
votes
1answer
47 views

Sending Specific Files With Mutt

I'm trying to use Mutt to send specific files in a folder. I have a folder titled "Image Cache" that, with a picture being taken every second, has 30 seconds of pictures in it. I would like to use ...
1
vote
1answer
56 views

How to revert list of email by date using mutt?

I use the office365 mutt config connect my Microsoft Office 365 email account, and that works fine. One issue I am having is that I want to reverse the email view so that I see the most recent ones ...
1
vote
0answers
36 views

Can I create a mutt macro to reply and archive?

Is it possible to create a mutt macro to reply to an email, then move it to another folder? Currently I have the following two macros defined. bind index,pager r group-reply macro pager a ":set ...
2
votes
2answers
39 views

Can mutt macros obtain properties from the current message?

In mutt, can macros can obtain some of the properties from the current message, in order to use them as variables? Here are some examples of potential macros, with the properties I'd wish to obtain in ...
3
votes
0answers
22 views

How to create a send-hook for only a sole specific recipient in mutt?

I'm trying to set up a send-hook so that gpg encryption is enabled when I send to a specific recipient, but if it's sent to other recipients as well, then encryption is disabled. That is, encrypt if ...
3
votes
1answer
66 views

How can I search gpg-encrypted email with notmuch-mutt?

I'm using mutt, with notmuch-mutt indexing the mail. I have a macro defined in mutt to search multiple mailboxes, using notmuch's integration (as suggested in the man page). macro index <F3> \ ...
3
votes
0answers
103 views

Can I open the next unread message in mutt with a single key?

Is there a way to open the next unread message in mutt with a single key? I can move to the next unread with next-new-then-unread, which is bound to Tab by default. However, if there are no unread ...
1
vote
0answers
21 views

Can I delete messages from the trash after x days in mutt?

I'd like to use a trash folder in mutt. I know how to create a macro that moves mail to the trash folder instead of deleting. However, I'd also like to automatically delete messages that sit there for ...
4
votes
1answer
135 views

Why does sending email via mutt work to gmail but not to evernote?

I have freshly installed sendmail and mutt on Ubuntu 14, with no configuration. It works fine like this when sending a test email to a gmail account, e.g. mutt -s 'test 1' < /dev/null -- ...
3
votes
1answer
52 views

How can I change $record in mutt depending on the from address?

I use multiple accounts in mutt, and wish to save sent messages to different $record directories. I am aware of folder-hook; if I compose in different folders, I can change $record depending on the ...