English 中文(简体)
从某一日期(Python)下载持久性有机污染物3头盔
原标题:Download POP3 headers from a certain date (Python)

我试图用现有校准在平时写出一个波-3和 im客户,这些用户将从各种服务器下载电子邮件头盔(以及随后整个电子邮件机构),并在一个蒙戈布数据库中予以节省。 面临的问题是,除了用户经常发送电子邮件外,该客户还下载电子邮件。 因此,假设用户在使用其邮件客户下载时可能或可能不会离开服务器上的电子邮件,那么我就希望打上头盔,而只是从某个日期收集,以避免每当我打上头盔时就把整个邮箱gra。

只要我能够看到第PC3号名单上的电话,我就会在服务器上获得所有信息,甚至我可能已经下载的信息。 IMAP没有这个问题。

在处理持久性有机污染物服务器时,电子邮件客户如何处理这种情况?

最佳回答

Outlook logs in to a POP3 server and issues the STAT, LIST and UIDL commands; then if it decides the user has no new messages it logs out. I have observed Outlook doing this when tracing network traffic between a client and my DBMail POP3 server. I have seen Outlook fail to detect new messages on a POP3 server using this method. Thunderbird behaves similarly but I have never seen it fail to detect new messages.

发布<代码>LIST和UIDL,在登录后向服务器发出指令。 <代码>LIST给你一个指数编号(信箱中的电线位置)和每个电文的大小。 UIDL 给您的每个电文的指数编号和计算值。

对于每个用户,可储存<代码>LIST和tDL给出的大小和h值。 如果你看到同一大小和散列价值,则认为同一信息。 当某一信息不再出现在名单上时,假定该信息已被删除,并从您的当地记忆中加以澄清。

For complete purity, remember the relative positions of the size/hash pairs in the message list, so that you can support the possibility that they may repeat. (My guess on Outlook s new message detection failure is that sometimes these values do repeat, at least for DBMail, but Outlook remembers them even after they are deleted, and forever considers them not new. If it were me, I would try to avoid this behavior.)

脚注: 牢记标题是这一信息的一部分。 出于这一原因,对头脑不相信任何东西:日期、发送器、甚至服务器的手递信息都很容易破碎,不能假定是独一无二的。

问题回答

暂无回答




相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签