<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《用python来收发邮件》的评论</title>
	<atom:link href="http://luy.li/2009/08/16/python_mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://luy.li/2009/08/16/python_mail/</link>
	<description>all linux</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:10:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>作者：bones7456</title>
		<link>http://luy.li/2009/08/16/python_mail/#comment-9277</link>
		<dc:creator>bones7456</dc:creator>
		<pubDate>Thu, 28 Jan 2010 13:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=942#comment-9277</guid>
		<description>直接按编码print，没啥问题啊。</description>
		<content:encoded><![CDATA[<p>直接按编码print，没啥问题啊。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：googya</title>
		<link>http://luy.li/2009/08/16/python_mail/#comment-9276</link>
		<dc:creator>googya</dc:creator>
		<pubDate>Thu, 28 Jan 2010 06:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=942#comment-9276</guid>
		<description>怎如何显示中文呢.我看这是一个比较大的问题！</description>
		<content:encoded><![CDATA[<p>怎如何显示中文呢.我看这是一个比较大的问题！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：D.B.Cooper</title>
		<link>http://luy.li/2009/08/16/python_mail/#comment-8516</link>
		<dc:creator>D.B.Cooper</dc:creator>
		<pubDate>Sat, 14 Nov 2009 17:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=942#comment-8516</guid>
		<description>我在发送的时候怎么老是来链接不上服务器？？s.login(&#039;bones7456&#039;,&#039;密码&#039;)  参数我是对的，， 真实郁闷</description>
		<content:encoded><![CDATA[<p>我在发送的时候怎么老是来链接不上服务器？？s.login(&#8216;bones7456&#8242;,&#8217;密码&#8217;)  参数我是对的，， 真实郁闷</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bones7456</title>
		<link>http://luy.li/2009/08/16/python_mail/#comment-7731</link>
		<dc:creator>bones7456</dc:creator>
		<pubDate>Sun, 30 Aug 2009 12:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=942#comment-7731</guid>
		<description>非也，Header应该是email.header下面的一个对象。虽然在python2.6下，为了兼容老的写法，用email.Header也可以引用到email.header，但是在python3下已经不行了，所以还是推荐用小写的。
&lt;pre lang=&quot;python&quot;&gt;Python 2.6.2 (r262:71600, Jul 10 2009, 22:49:39) 
[GCC 4.3.3] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import email.header
&gt;&gt;&gt; type(email.header.Header)
&lt;type &#039;classobj&#039;&gt;
&gt;&gt;&gt; type(email.header.decode_header)
&lt;type &#039;function&#039;&gt;
&gt;&gt;&gt; type(email.Header.decode_header)
&lt;type &#039;function&#039;&gt;
&lt;/pre&gt;
&lt;pre lang=&quot;python&quot;&gt;Python 3.1.1 (r311:74480, Aug 24 2009, 09:58:56) 
[GCC 4.4.1] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import email.header
&gt;&gt;&gt; type(email.header.Header)
&lt;class &#039;type&#039;&gt;
&gt;&gt;&gt; type(email.header.decode_header)
&lt;class &#039;function&#039;&gt;
&gt;&gt;&gt; type(email.Header.decode_header)
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
AttributeError: &#039;module&#039; object has no attribute &#039;Header&#039;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>非也，Header应该是email.header下面的一个对象。虽然在python2.6下，为了兼容老的写法，用email.Header也可以引用到email.header，但是在python3下已经不行了，所以还是推荐用小写的。</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">Python 2.6.2 <span style="color: black;">&#40;</span>r262:<span style="color: #ff4500;">71600</span>, Jul <span style="color: #ff4500;">10</span> <span style="color: #ff4500;">2009</span>, <span style="color: #ff4500;">22</span>:<span style="color: #ff4500;">49</span>:<span style="color: #ff4500;">39</span><span style="color: black;">&#41;</span> 
<span style="color: black;">&#91;</span>GCC 4.3.3<span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>.<span style="color: black;">Header</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&lt;</span>type <span style="color: #483d8b;">'classobj'</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>.<span style="color: black;">decode_header</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&lt;</span>type <span style="color: #483d8b;">'function'</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">Header</span>.<span style="color: black;">decode_header</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&lt;</span>type <span style="color: #483d8b;">'function'</span><span style="color: #66cc66;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">Python 3.1.1 <span style="color: black;">&#40;</span>r311:<span style="color: #ff4500;">74480</span>, Aug <span style="color: #ff4500;">24</span> <span style="color: #ff4500;">2009</span>, 09:<span style="color: #ff4500;">58</span>:<span style="color: #ff4500;">56</span><span style="color: black;">&#41;</span> 
<span style="color: black;">&#91;</span>GCC 4.4.1<span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>.<span style="color: black;">Header</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&lt;</span>class <span style="color: #483d8b;">'type'</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">header</span>.<span style="color: black;">decode_header</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&lt;</span>class <span style="color: #483d8b;">'function'</span><span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #008000;">type</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">email</span>.<span style="color: black;">Header</span>.<span style="color: black;">decode_header</span><span style="color: black;">&#41;</span>
Traceback <span style="color: black;">&#40;</span>most recent call last<span style="color: black;">&#41;</span>:
  File <span style="color: #483d8b;">&quot;&lt;stdin&gt;&quot;</span>, line <span style="color: #ff4500;">1</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">&lt;</span>module<span style="color: #66cc66;">&gt;</span>
<span style="color: #008000;">AttributeError</span>: <span style="color: #483d8b;">'module'</span> <span style="color: #008000;">object</span> has no attribute <span style="color: #483d8b;">'Header'</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>作者：菜鸟飘过</title>
		<link>http://luy.li/2009/08/16/python_mail/#comment-7730</link>
		<dc:creator>菜鸟飘过</dc:creator>
		<pubDate>Sun, 30 Aug 2009 11:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=942#comment-7730</guid>
		<description>话说email.header应该写成   email.Header  才对</description>
		<content:encoded><![CDATA[<p>话说email.header应该写成   email.Header  才对</p>
]]></content:encoded>
	</item>
</channel>
</rss>

