<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>config &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/config/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Mon, 25 Jan 2016 17:51:33 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Using Mutt as Email client</title>
		<link>https://luxing.im/using-mutt-as-email-client/</link>
					<comments>https://luxing.im/using-mutt-as-email-client/#comments</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Fri, 04 Oct 2013 01:00:08 +0000</pubDate>
				<category><![CDATA[Techie Stuff]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mutt]]></category>
		<guid isPermaLink="false">http://blog.luxing.im/?p=15</guid>

					<description><![CDATA[I&#8217;ve always fascinated with my professor Jim Diamond&#8217;s email client, and how it interacts with his zsh. Start from today, I am going to change my main email client from Thunderbird to Mutt too. Here is a small piece of snippet that I put into my ~/.mutt configuration. You may follow my steps and copy &#8230; <p class="link-more"><a href="https://luxing.im/using-mutt-as-email-client/" class="more-link">Continue reading<span class="screen-reader-text"> "Using Mutt as Email client"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve always fascinated with my professor Jim Diamond&#8217;s email client, and how it interacts with his <em>zsh</em>. Start from today, I am going to change my main email client from Thunderbird to Mutt too. Here is a small piece of snippet that I put into my ~/.mutt configuration. You may follow my steps and copy the necessary information to your mutt configuration files.</p>
<p><span id="more-15"></span></p>
<p>It is nearly a year that I haven&#8217;t used Windows as my in-production OS, instead I&#8217;ve used either RedHat sponsored Linux distro (Fedora) or a RHEL-copy CentOS.</p>
<pre>sudo yum install mutt</pre>
<p>Now it is the fun part.</p>
<p>By default, your mutt will read info from ~/.muttrc or ~/.mutt/muttrc. Since I have several email addresses needed to be setup, I use the second one.</p>
<pre>mkdir -p ~/.muttrc/accounts</pre>
<p>Which creates requested folders.</p>
<p>Go to ~/.mutt/accounts/ and create your email account file (you may name it as your like, but keep track of the file name) like the following way:</p>
<pre># Uni Email Setting, file name: university
set from = "abcdef@esp.tld"
set realname = "Your Name Here"
# IMAP settings here
set imap_user = "abcdef"
set imap_pass = ""       # Password is empty here so you'll key-in passwords everytime you wish to access your email account
set folder = "imaps://imap.mail.tld:993"
set spoolfile = "imaps://imap.mail.tld:993/Inbox"   # For gmail users, you need to set your spoolfiles to "+INBOX"
set imap_check_subscribed
set mime_forward=yes
set mime_forward_rest=yes

#SMTP settings
set smtp_url = "smtp://abcdef@smtp.esp.tld:587/"
set smtp_pass = ""

set mail_check = 120
set timeout = 300
set imap_keepalive = 300
# You can set the postponed/record to "+Drafts" or "Sent" correspondently below.
set postponed = "imaps://imap.mail.tld:993/Inbox.Drafts"
set record = "imaps://imap.mail.tld:993/Inbox.Sent"
set header_cache=~/.mutt/cache/headers</pre>
<p>You can also put your GnuPG keys under your account if you have multiple keys for multiple emails for some reason. You need to copy the <a href="http://dev.mutt.org/trac/wiki/MuttGuide/UseGPG" target="_blank">content</a> over under each of your account setting. Remember to substitute your public key identifier in the config files.</p>
<p>You can create similar ones with gmail, assume that you have read the comments above.</p>
<p>Now we put some general information into our muttrc:</p>
<pre>vim ~/.mutt/muttrc</pre>
<pre>set editor = "vim"
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
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
alternative_order text/plain text/html *
auto_view text/html
bind editor  complete-query
bind editor ^T complete
bind editor  noop
set hostname = desktop.luxing.im
set sig_on_top = yes

# Create a statusbar shows the information in localtime.
set pager_format="%4C %Z %[!%b %e at %I:%M %p]  %.20n -- %s%* -- (%P)"

# Accounts and Shortcuts
source ~/.mutt/accounts/acadia
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/yeah<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/126<enter><change-folder>!<enter>'


# move spam to Spam/ from: http://chrisjrob.com/2011/03/23/configuring-mutt-for-spam/
macro index S "<tag-prefix><enter-command>unset resolve<enter><tag-prefix>N<tag-prefix><enter-command>set resolve<enter><tag-prefix><save-message>=INBOX.Spam<enter>" "file as Spam"
macro pager S "<save-message>=INBOX.Spam<enter>" "file as Spam"

macro index H "<tag-prefix><enter-command>unset resolve<enter><tag-prefix>N<tag-prefix><enter-command>set resolve<enter><tag-prefix><save-message>=INBOX<enter>" "file as Ham"
macro pager H "<save-message>=INBOX<enter>" "file as Ham"

# return to inbox by pressing .
macro index . "<change-folder>=INBOX<enter>" "Inbox"

set pager_format="%4C %Z %[!%b %e at %I:%M %p]  %.20n  %s%* -- (%P)" # show the corresponding local time of the email.
set pgp_use_gpg_agent = yes

</pre>
<p>You need to adjust your accounts corresponding to your settings.</p>
<p>If you put sensitive information like your passwords into your <em>account</em>, remember to chmod 600 for security concern.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/using-mutt-as-email-client/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">15</post-id>	</item>
	</channel>
</rss>
