EzDevInfo.com

mutt interview questions

Top mutt frequently asked interview questions

How do I filter or search email messages in Mutt by a flag?

For example , if I want to list only unseen/unread emails? I know you can use some sort of expressions when doing a search with / but not sure what is supported. Am I able to specify a flag based search for example?


Source: (StackOverflow)

Creating a multipart email and sending it in Linux

We use mutt to send out emails.

mutt -s "Test" -e "Content-Type: text/html" test@example.com < message.html

We send out our email updates in HTML format. We would like to send emails as multi-part containing both a text version and an html version.

  1. How do we create such a multipart message in Linux when the email subject, and HTML and text versions of the email body are given?
  2. Can we use mutt to send the multipart email created in step 1, from the linux prompt?

Envirnonment: RedHat Enterprise Linux 5, mutt


Source: (StackOverflow)

Advertisements

Listing important folders in mutt

When I type c in mutt I get all my folders displayed and this is quite long.

I would like to configure it to show only those folders that I deem to be interesting. Would be happy to configure it by adding a list in my .muttrc


Source: (StackOverflow)

IMAP partial fetch in mutt

The IMAP protocol supports a feature called 'partial fetch', which allows a client to download only a part of a MIME message. This is very useful on slow connections

I am using the mutt MUA. I would like to tell mutt to only download the first part, or only download the text/plain parts, or some other similar rule

  • Does mutt support IMAP partial fetch?
  • If it doesn't, is there any other way to download only a small part of a big message using mutt [ and maybe other programs ]

Source: (StackOverflow)

Mutt and calendar?

Is there any calendar which works well with Mutt?

Ideally it should be able to handle .ics files so I can import the meeting invitations my Outlook-using colleagues send me.


Source: (StackOverflow)

How do I open a link from an email in mutt (without using the mouse)?

One of the things I like about using Mutt is that I don't have to use the mouse pretty much at all. I get a lot of emails that contain links, though, whether they're validation ("click on this link to validate your account") or from Facebook or other similar sites. What I want to know is, is there a way to open these links without clicking on them?


Source: (StackOverflow)

how to use Gmail tabs with IMAP?

Is there any way to apply an IMAP label to only the messages under the "Primary" tab in my Gmail?

I'd like to use a console-based email client like Mutt or Gnus or Wanderlust to reply to messages, but I only want to see messages which Gmail has filtered into the "Primary" tab.


Source: (StackOverflow)

Mutt seems to sync to Gmail IMAP only on quit

I am using Mutt 1.5.20 in Mac OS X Terminal. I have a Google mail account whose mail I fetch via IMAP. I also use a Gmail notifier app to notify me of new e-mail messages. My experience with Mutt dates no later than 1 week.

The trouble is this: When my Gmail notifier tells me about a new e-mail, I hit the Terminal to open Mutt. I can read the message and Mutt will mark it as read. However, Google's servers are not told that the message is read until Mutt is closed. Thus, my Gmail notifier continues to show a misleading unread count.

How can I force Mutt to synchronize with IMAP without having to quit every time I finish reading my e-mail? Preferably the sync will occur instantaneously, but a periodic sync would be satisfactory as well.


Source: (StackOverflow)

Has anyone successfully configured mutt for GMail on FreeBSD? If so, how?

I've tried following the instructions here and here. Currently, I can read email from my GMail account, but not send—this is on a personal computer, so even if I configured Sendmail, I doubt any of the mail would survive the spam filter gauntlet. Both guides seem to require the --enable-smtp option for mutt, which I don't think is being exposed by ports. I've tried the mutt and mutt-devel ports and neither seem to give me that option.

On a far less important note, I also haven't been able to change folders, e.g., I get told that Sent Mail is not a valid folder when I attempt to go into it. If you can troubleshoot this problem, it's pure gravy. I really only care about sending.

Thanks,

Hank

UPDATE: For those who are interested, the mutt wiki has a GMailOverIMAP UserStory.

UPDATE 2: Although I finally solved my original problem (enabling SMTP support for mutt in FreeBSD), @grawity convinced me to use a relay and avoid mutt's native SMTP support. With that in mind, I went with msmtp. At that point, The Quick-N-Dirty Guide to Using mutt with gmail was very useful, including tips on how to enable OpenSSL for msmtp (so it can talk to GMail's SMTP servers, which use TLS).


Source: (StackOverflow)

Sending mails via Mutt and Gmail: Duplicates

I'm trying to setup mutt wiht gmail for the first time. It seems to work pretty well, however when I send a mail from Mutt i appears twice in Gmail's sent folder. (I assume it's also sent twice - I'm trying to validate that)

My configuration (Stripped of coloring):

# A basic .muttrc for use with Gmail
# Change the following six lines to match your Gmail account details
set imap_user = "XX"
set smtp_url = "XX@gmail.com@smtp.gmail.com:587/"
set from = "XX"
set realname = "XX"

# Change the following line to a different editor you prefer.
set editor = "vim"

# Basic config, you can leave this as is
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set imap_check_subscribed
set hostname = gmail.com
set mail_check = 120
set timeout = 300
set imap_keepalive = 300
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent Mail"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
hdr_order Date From To Cc
auto_view text/html
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop

# Gmail-style keyboard shortcuts
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[Gmail]/Bin\"\n <delete-message>" "Gmail delete message"
macro index,pager gl "<change-folder>"
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index,pager gt "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent mail"

#Don't prompt on exit
set quit=yes


## =================
#Color definitions
## =================

set pgp_autosign

Source: (StackOverflow)

How do I create a new folder in Mutt

I want to create a new folder from within Mutt. I use Maildir format to store the folders on the machine I am running Mutt on.

(I also view the mail remotely using courier IMAP but this doesnt involve Mutt)

Edited to clarify role of IMAP


Source: (StackOverflow)

OSX: Add Dock icon for dedicated Terminal command

I use Mutt. I want a dock icon to launch it. Is such a thing possible?

I'm looking for a way to add a second Terminal icon to the Dock which lets me launch a specific command, "mutt" in this instance.

I want to group this icon with the other app icons, ie I'd rather not drop a .command file into the right-hand "documents" section of the dock.


Source: (StackOverflow)

Automatically sort list messages to list folder with IMAP

I would like to automatically move received messages to list-specific folders on an IMAP server with mutt. All these lists are lists known to mutt.

What I do right now is periodically tag messages by Sender and then tag-save them to the right folder. Mutt already suggests the correct folder. This seems way too pedestrian to me, and I feel there should be some way to automate this.

I know there are specific tools available to do this outside of a MUA, but the only ways to access this server seems to be trough some MUA (e.g. I don't have shell access).

How would I best do this inside mutt?


Source: (StackOverflow)

Mutt will not let me save an SSL certificate

I have just set up Mutt to connect to my firm's IMAP and SMTP server. Everything works; but when I launch mutt, I get a warning about the certificate, and am given the option to:

(r)eject, accept (o)nce

I do not get an option to (a)ccept it or any other way to save it. I suspect the server is misconfigured because Mutt says:

WARNING: Server certificate has expired
WARNING: Server hostname does not match certificate

However, I would still like to save the certificate. After all, it is more secure to get the machine to accept a particular, fixed, cert than to get into the habbit of hitting o every time I launch mutt.

BTW: something similar seems to happen every time I send the mail too. The SMTP and IMAP servers are on the same machine.

[UPDATE: partial solution]

After a bit of RTFM I found out that you can add

set ssl_verify_host = no
set ssl_verify_dates = no

to .muttrc, to disable the checks. This makes mutt treat the cert as OK, and lets you save it. The problem is that even after it is saved, you must keep those to settings. Worse, they are global settings, so if I ever start using multiple servers, they will all be less secure.

Does anyone have better ideas?


Source: (StackOverflow)

How can I set mutt as the default mail client when I click on a 'mailto' in a webpage?

I wanted to start mutt in terminal when I click on some mailto: tag in a webpage. Is that possible? Currently Firefox starts, which I really don't favor; it's slow loading and unnecessary.


Source: (StackOverflow)