<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Проблема с imap в python]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=10978&amp;type=atom" />
	<updated>2011-03-05T20:50:30Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=10978</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с imap в python]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=152986#p152986" />
			<content type="html"><![CDATA[<p>python.su.Там быстрее wink</p>]]></content>
			<author>
				<name><![CDATA[gnomsi]]></name>
				<uri>https://linuxforum.ru/profile.php?id=10975</uri>
			</author>
			<updated>2011-03-05T20:50:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=152986#p152986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Проблема с imap в python]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=145288#p145288" />
			<content type="html"><![CDATA[<p>Не могу прочитать отправленные сообщения. Причем входящие я благополучно читаю. гуглил, но, к сожалению ничего не нашел. Вот этот небольшой исходник<br /></p><div class="codebox"><pre><code>import imaplib
 
server = &quot;imap.yandex.ru&quot;
port = &quot;143&quot;
login = &quot;****@yandex.ru&quot;
password = &quot;123456&quot;
box = imaplib.IMAP4(server)
box.login(login, password)
box.select(&#039;sent&#039;)
typ, data = box.search(None, &#039;All&#039;)
typ, text = box.fetch(1, &#039;(RFC822)&#039;)
newText = &quot;&quot;.join(text[0][1])
#parsMsg = email.message_from_string(newText)
#for i in re.findall(r&quot;(&lt;!DOCTYPE HTML PUBLIC.+&lt;/html&gt;)&quot;, &quot; &quot;.join(newText.split())):#newText):
 #   print i
box.close()
box.logout()</code></pre></div><p>на что интерпретатор пишет мне : imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED<br />ошибка в строке <br /></p><div class="codebox"><pre><code>typ, data = box.search(None, &#039;All&#039;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[snakeduse]]></name>
				<uri>https://linuxforum.ru/profile.php?id=8822</uri>
			</author>
			<updated>2011-02-14T21:05:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=145288#p145288</id>
		</entry>
</feed>
