<?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>风叶 &#187; mailx</title>
	<atom:link href="http://blog.myhnet.cn/tag/mailx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.myhnet.cn</link>
	<description>秋湍泻石髓 风叶聚云根</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:00:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Linux文本模式下发送带附件的Email</title>
		<link>http://blog.myhnet.cn/2009/11/12/how-to-send-email-with-attachment-in-linux-text-terminal/</link>
		<comments>http://blog.myhnet.cn/2009/11/12/how-to-send-email-with-attachment-in-linux-text-terminal/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 10:19:44 +0000</pubDate>
		<dc:creator>myhnet</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[attach]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[consol]]></category>
		<category><![CDATA[邮件]]></category>
		<category><![CDATA[附件]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail with attachment]]></category>
		<category><![CDATA[mailx]]></category>
		<category><![CDATA[nail]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[uuencode]]></category>
		<category><![CDATA[带附件的Email]]></category>
		<category><![CDATA[带附件邮件]]></category>
		<category><![CDATA[文本模式]]></category>

		<guid isPermaLink="false">http://blog.myhnet.cn/?p=882</guid>
		<description><![CDATA[最近写一个脚本，需要直接在linux文本终端里面直接发送附件，而linux自带的那个什么mail命令，是由mailx包生成的，本身不带发送附件的功能。 放狗搜了一圈，发现基本上使用的都是mailx+uuencode这招。详情见http://www.webjx.com/server/linux-2724.html&#8221; 但是这种方式，是将文件转成ASCII码进行传输，在某些客户端(比如某些web客户端)，很可能收到的就是一堆乱码。为了解决这个问题，我推荐另一个文本模式的邮件客户端：nail 不知道centos的官方源中有没有，但是，在rpmforge的源里面是肯定有的。装好之后，本身只会生成/usr/bin/nail这个命令，要是你很习惯用mail这个命令的话，可以考虑自己建立一个软链。 另附rpmforge源中nail包的information # yum info nailLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile&#160;* addons: centos.ustc.edu.cn&#160;* base: centos.ustc.edu.cn&#160;* extras: centos.ustc.edu.cn&#160;* rpmforge: ftp-stud.fht-esslingen.de&#160;* updates: centos.ustc.edu.cnInstalled PackagesName&#160; &#160; &#160; &#160;: nailArch&#160; &#160; &#160; &#160;: x86_64Version&#160; &#160; : 12.3Release&#160; &#160; : 4.el5.rfSize&#160; &#160; &#160; &#160;: 612 kRepo&#160; &#160; &#160; &#160;: installedSummary&#160; &#160; : Enhanced implementation of [...]]]></description>
			<content:encoded><![CDATA[<p>最近写一个脚本，需要直接在linux文本终端里面直接发送附件，而linux自带的那个什么mail命令，是由mailx包生成的，本身不带发送附件的功能。</p>
<p>放狗搜了一圈，发现基本上使用的都是mailx+uuencode这招。详情见<a href="http://www.webjx.com/server/linux-2724.html" target="_blank">http://www.webjx.com/server/linux-2724.html&#8221;</a></p>
<p>但是这种方式，是将文件转成ASCII码进行传输，在某些客户端(比如某些web客户端)，很可能收到的就是一堆乱码。为了解决这个问题，我推荐另一个文本模式的邮件客户端：<strong><em>nail</em></strong></p>
<p>不知道centos的官方源中有没有，但是，在rpmforge的源里面是肯定有的。装好之后，本身只会生成/usr/bin/nail这个命令，要是你很习惯用mail这个命令的话，可以考虑自己建立一个软链。</p>
<p>另附rpmforge源中nail包的information</p>
<div class="hl-surround"><div class="hl-main"># yum info nail<br />Loaded plugins: fastestmirror<br />Loading mirror speeds from cached hostfile<br />&nbsp;* addons: centos.ustc.edu.cn<br />&nbsp;* base: centos.ustc.edu.cn<br />&nbsp;* extras: centos.ustc.edu.cn<br />&nbsp;* rpmforge: ftp-stud.fht-esslingen.de<br />&nbsp;* updates: centos.ustc.edu.cn<br />Installed Packages<br />Name&nbsp; &nbsp; &nbsp; &nbsp;: nail<br />Arch&nbsp; &nbsp; &nbsp; &nbsp;: x86_64<br />Version&nbsp; &nbsp; : 12.3<br />Release&nbsp; &nbsp; : 4.el5.rf<br />Size&nbsp; &nbsp; &nbsp; &nbsp;: 612 k<br />Repo&nbsp; &nbsp; &nbsp; &nbsp;: installed<br />Summary&nbsp; &nbsp; : Enhanced implementation of the mailx command<br />URL&nbsp; &nbsp; &nbsp; &nbsp; : http://nail.sourceforge.net/<br />License&nbsp; &nbsp; : BSD<br />Description: Nail is an enhanced mail command, which provides the functionality<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : of the POSIX mailx command. It is derived from Berkeley Mail.<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : Additionally to the POSIX features, nail can work with Maildir/ e-mail<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : storage format (as well as mailboxes), supports IMAP, POP3 and SMTP<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : procotols (including over SSL) to operate with remote hosts, handles mime<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : types and different charsets. There are a lot of other useful features,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : see nail.html in the documentation.<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : And as its ancient analogues, nail can be used as a mail script language,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : both for sending and receiving mail.</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.myhnet.cn/2009/11/12/how-to-send-email-with-attachment-in-linux-text-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
