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

learn more… | top users | synonyms

1
vote
0answers
32 views

mutt doesn't run as a cron job wrapped in a bash script

mutt runs correctly like this: $ cat /home/user/test this is a test $ mutt -s "test" to@destination.org </home/user/test If I put this inside a bash script (stored in tmp1): #!/bin/bash /usr/...
3
votes
1answer
21 views

Syntax of smtp_url in muttrc

I'm trying to configure mutt just for the purpose of sending short report e-mails from a command-line at the end of a cron job, on a headless server. Most advice on mutt is how to set it up fully as ...
1
vote
0answers
15 views

How can I make my .muttrc portable to older machines despite “unknown variable”

On an older machine, which I am not an administrator of, I can't use my global .muttrc, without getting Error in /home/jidanni1/.muttrc, line 18: sidebar_visible: unknown variable source: errors in /...
2
votes
0answers
31 views

Reading exchange email with mutt and davmail?

I must have read about 65 web pages about this issue, and tried them all, but so far I can't get it to work. I can access my exchange email using Thunderbird, with the imap server set to localhost ...
2
votes
2answers
31 views

Setting editor in mutt: vim with parameters?

I am exploring mutt as an email client - and I like it very much - my only problem is setting the editor to be vim with some extra parameters. Ideally, I would like something like set editor='vim -c ...
1
vote
1answer
20 views

How can I get mutt to automatically select pgp keys?

Problem I wish encrypt an email to foo@bar.com, using mutt. I have an associated key, which I trust marginally. After attempting to send the email, I have to select from a list of keys, both of which ...
0
votes
1answer
25 views

How to ignore “Tags:” Header in mutt (neomutt)

I am using NEOMUTT with Virtual folders and added "ignore *" to my .muttrc. It ignores all headers apart from the "Tags:" header. I also want to ignore this tag (and all others). How can I do ...
2
votes
1answer
36 views

In mutt, how can I easily attach files which contain spaces in their name?

I'd like to attach some files in mutt's compose screen. I press a to attach. However, if I paste in a path with spaces, it eats the spaces up. Similarly, if I drag and drop a GUI icon into my terminal,...
1
vote
1answer
33 views

Mutt Hide Headers with Shortcut

I am trying to find a way to define a shortcut in Mutt to show the headers of the email in the Pager view. IMHO the headers use too much space and I want to hide, apart from when I press a specific ...
3
votes
0answers
20 views

How to make PGP's output less verbose in mutt with GnuPG & TOFU?

I recently added trust-model tofu+pgp in my .gnupg/gpg.conf to use TOFU and automatically trust (marginally) keys from e-mails I see for the first time. It has the bad consequence of making PGP's ...
1
vote
1answer
10 views

Mutt shows scrambled characters in white space after folder change

For switching accounts in mutt I user folder hooks through a macro like: folder-hook 'google.com' 'source ~/.mutt/account.gmail.muttrc' macro index <f2> '<sync-mailbox><enter-command&...
1
vote
1answer
29 views

Mutt - Automatic Display Sent Email

I am new to Mutt and I am trying to replicate Gmail's behaviour after sending an e-mail. It stays on the thread of the conversation and shows the sent e-mail. After sending a message in the Mutt ...
1
vote
1answer
18 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
37 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
60 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
63 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
30 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
61 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
55 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
38 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
73 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
24 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 sidebar_visible<...
1
vote
1answer
82 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
44 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
2answers
34 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
38 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
16 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
29 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
61 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
132 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 multi-...
1
vote
0answers
27 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
32 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
34 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 read()...
-1
votes
1answer
78 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
51 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
132 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
192 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
307 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
279 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
30 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
35 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
101 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 =INBOX.Archives....
3
votes
2answers
38 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 'https:...
3
votes
1answer
156 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
204 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
103 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 sendmail_wait=-...
5
votes
2answers
180 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
70 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 ...