<?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>wd and cc &#187; msmtp</title>
	<atom:link href="http://wdicc.com/tag/msmtp/feed/" rel="self" type="application/rss+xml" />
	<link>http://wdicc.com</link>
	<description>Happy every day...</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>mutt的两个问题以及解决办法</title>
		<link>http://wdicc.com/2-problems-in-mutt/</link>
		<comments>http://wdicc.com/2-problems-in-mutt/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 09:06:10 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[msmtp]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2006/11/01/257/</guid>
		<description><![CDATA[mutt用了一段时间之后发现对方发过来的附件的名字都是乱码，多次之后就觉得比较郁闷，每次都得自己修改名字，还得猜文件类型，很郁闷。google了一下，发现了解决办法，是因为mutt默认使用... ]]></description>
			<content:encoded><![CDATA[<p style="float: right;margin: 4px;"><script type="text/javascript"><!--
google_ad_client = "pub-9015557074547192";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> <p>mutt<a target="_blank" href="http://blog.wdicc.com/wordpress/2006/09/03/242/">用了一段时间</a>之后发现对方发过来的附件的名字都是乱码，多次之后就觉得比较郁闷，每次都得自己修改名字，还得猜文件类型，很郁闷。google了一下，发现了<a target="_blank" title="gnus/mutt 邮件乱码问题" href="http://learn.tsinghua.edu.cn:8080/2002315162/muttpatched.html">解决办法</a>，是因为mutt默认使用的是rfc2331来解码的，所以添加一个set rfc2047_parameters=yes就可以了，这样对方发过来的邮件就可以正常显示文件名称了。但是同时从那个网址得知，我发出去的附件，也是用rfc2331来编码的，这样到了对方那里，显然会乱码了。测试了一下，outlook里面提示有附件，可是打开是乱码，并且附件名称也不是实际的附件名称。foxmail里面不提示有附件，内容后面会显示几个乱码。</p>
<p>按照前面那个网址，找到了<a target="_blank" title="mutt的rfc2047补丁" href="http://www.emaillab.org/mutt/download1510.html.en">mutt的补丁</a>，尝试了半天，不能在muttng上面正常使用，没办法只好不用muttng用mutt了。打上补丁之后，设置了 set create_rfc2047_parameters=yes  发出去的邮件就正常了。在mutt的<a target="_blank" title="mutt patch list" href="http://wiki.mutt.org/index.cgi?PatchList">patch list</a>列表里面找到<a target="_blank" title="mutt的sidebar补丁" href="http://lunar-linux.org/index.php?page=mutt-sidebar">sidebar补丁</a>，给mutt打了sidebar的补丁，用起来也还行了。同时，也把我的mutt升级到了1.5.13，比源里面的都新了。呵呵。</p>
<p>此外，还有一个问题就是如何对应不同的账号使用不同的smtp server。 本来从网上找了一个文章说到了这个操作如何实现，我也照搬了，发现似乎可以实现这个功能。可是最近才发现，我完全错了，实际上用的总是msmtp里面设置的那个default smtp server，郁闷坏啦，给头以及同事发了好多邮件了，用的都是我的gmail邮箱。</p>
<p>现在我已经解决了这个问题，用的是send-hook，如下。<br />
send-hook . &#8216;my_hdr from:wd@aaa.com&#8217;<br />
send-hook . &#8216;set sendmail=&#8221;/usr/bin/msmtp -a gmail&#8221;&#8216;<br />
send-hook &#8216;~t .*@bbb\.com\.cn$&#8217; &#8216;my_hdr from:stef@bbb.com.cn&#8217;<br />
send-hook &#8216;~t .*@bbb\.com\.cn$&#8217; &#8216;set sendmail=&#8221;/usr/bin/msmtp -a bbb&#8221;&#8216;</p>
<p>这样，针对不同的mail，使用不同的sendmail程序。</p>
<p>发现mutt发送邮件的时候使用的是我的gmail邮箱的时候，我很郁闷，再加上发现他发送的附件在别人那里居然不认，让我就更郁闷了。立刻安装了thunderbird，并且设置好了他，打算以后就用他了。但是发现我已经习惯了mutt了，所以还是回头来给mutt打了补丁，做了修改，让他按照我的习惯来了。 用thunderbird后发现，很多事情不能按照我的意思来，很郁闷。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/2-problems-in-mutt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fetchmail,procmail,mutt,msmtp</title>
		<link>http://wdicc.com/fetchmail-procmail-mutt-msmtp/</link>
		<comments>http://wdicc.com/fetchmail-procmail-mutt-msmtp/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 01:15:33 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[fetchmail]]></category>
		<category><![CDATA[msmtp]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2006/09/03/242/</guid>
		<description><![CDATA[linux下面恐怕很多人都会推荐这种组合了。这个组合中的fetchmail负责将远方的pop,imap之类的mail收下来。然后procmail负责将这些mail投递到本地用户那里。mutt呢，就是用来管理查看这些邮件的了。ms... ]]></description>
			<content:encoded><![CDATA[<p>linux下面恐怕很多人都会推荐这种组合了。这个组合中的fetchmail负责将远方的pop,imap之类的mail收下来。然后procmail负责将这些mail投递到本地用户那里。mutt呢，就是用来管理查看这些邮件的了。msmtp用来联接远程的smtp服务器发送邮件。这</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/fetchmail-procmail-mutt-msmtp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
