pop3

How to find only “new” messages when using PHP's IMAP functions for a POP3 mailbox?

只愿长相守 提交于 2019-11-29 16:32:29
I'm using PHP's IMAP functions to retrieve messages from a POP3 mailbox & was wondering is there any way to tell the new messages apart from the old ones? Unfortunately I cannot just delete the ones that are retrieved as they need to stay on the mail server, so I'm now wondering that each subsequent time I connect, how can I just retrieve the new ones OR be able to tell the new ones apart from the old ones I have already retrieved previously? I know that each message has a UID attached to it & I could use this.. however I've read that this can change if the messages are deleted; as the

Get email using PowerShell

亡梦爱人 提交于 2019-11-29 08:18:48
All I need is get email in PoSh script and see at its topic - with pop3 or imap, doesnt matter. I tried to find solution, but all I found is either 3rd party .net assebmlies, or MS Exchange direct work. Both are not appropriate. How to use SMTP and send email - its absolutely clear, but how to receive? Isn't there any standard assemblies similar to System.Net.Mail? Here is a code I have been using on c#. I have Imported the dll to powershell and used it to retrieve different parts of a message. The dll I used is Imapx2 which is an open source. I understand that you don't want to use a third

Automatically check bounced emails via POP3?

て烟熏妆下的殇ゞ 提交于 2019-11-29 07:58:29
问题 Can anyone recommend software or a .NET library that will check for bounced emails and the reason for the bounce? I get bounced emails into a pop3 account that I can read then. I need it to keep my user database clean from invalid email addresses and want to automate this (mark user as invalid email). 回答1: I have done a great deal of work handling bounce emails and there different types. If you want to be absolutely sure that the email your looking at is indeed a bounce of a specific kind I

How to retrieve only new emails using POP3 protocol

让人想犯罪 __ 提交于 2019-11-29 07:26:37
I am using POP3 protocol to retrieve my emails in my .NET application. I need to read just new emails only but found in many blogs that it is not possible to retrieve just "unseen" or "new" mails using POP3. Is that true? If so, could you please help me understand how Outlook Express manages to get new mails using POP3? Is there any way that I can flag the seen mails in the email server itself? Or please help me find out a way to retrieve new mails using POP3 protocol. You have to store the UIDL of each email in a local database. When you want to check for new mail, you retrieve the UIDL s on

Parse Gmail with Python and mark all older than date as “read”

白昼怎懂夜的黑 提交于 2019-11-28 23:29:19
问题 Long story short, I created a new gmail account, and linked several other accounts to it (each with 1000s of messages), which I am importing. All imported messages arrive as unread, but I need them to appear as read. I have a little experience with python, but I've only used mail and imaplib modules for sending mail, not processing accounts. Is there a way to bulk process all items in an inbox, and simply mark messages older than a specified date as read? 回答1: typ, data = M.search(None, '

Check unread count of Gmail messages with Python

喜夏-厌秋 提交于 2019-11-28 13:50:48
问题 How can I check the number of unread Gmail message in my inbox with a short Python script? Bonus points for retrieving the password from a file. 回答1: import imaplib obj = imaplib.IMAP4_SSL('imap.gmail.com','993') obj.login('username','password') obj.select() obj.search(None,'UnSeen') 回答2: I advise you to use Gmail atom feed It is as simple as this: import urllib url = 'https://mail.google.com/mail/feed/atom/' opener = urllib.FancyURLopener() f = opener.open(url) feed = f.read() You can then

retrieve email using PHP and pop3 - what is your technique?

ぃ、小莉子 提交于 2019-11-28 11:47:44
I can see some options available: 1) Use PEAR's POP3 class --> tried it, having some weird weird issues like FF choking to death on their sample code!!! 2) Use PHPClasses ( here ) --> seems to be the viable option at the time, still working on it 3) Write my own or use one of the snippets available The target is currently Gmail, but I would like this to work on my ISP mail too (not necessarily same code of course). What do you use? Pointers to working snippets would be much appreciated. I use the PHPClasses version. Works fine for me - I've been working on an AJAX mail client (personal project

How to find only “new” messages when using PHP's IMAP functions for a POP3 mailbox?

吃可爱长大的小学妹 提交于 2019-11-28 10:45:04
问题 I'm using PHP's IMAP functions to retrieve messages from a POP3 mailbox & was wondering is there any way to tell the new messages apart from the old ones? Unfortunately I cannot just delete the ones that are retrieved as they need to stay on the mail server, so I'm now wondering that each subsequent time I connect, how can I just retrieve the new ones OR be able to tell the new ones apart from the old ones I have already retrieved previously? I know that each message has a UID attached to it

Python - How can I fetch emails via POP or IMAP through a proxy?

荒凉一梦 提交于 2019-11-28 07:49:33
Neither poplib or imaplib seem to offer proxy support and I couldn't find much info about it despite my google-fu attempts. I'm using python to fetch emails from various imap/pop enabled servers and need to be able to do it through proxies. Ideally, I'd like to be able to do it in python directly but using a wrapper (external program/script, OSX based) to force all traffic to go through the proxy might be enough if I can't find anything better. Could anyone give me a hand? I can't imagine I'm the only one who ever needed to fetch emails through a proxy in python... ** EDIT Title edit to remove

Integrating POP3 client functionality into a C# application?

女生的网名这么多〃 提交于 2019-11-28 02:55:15
I have a web application that requires a server based component to periodically access POP3 email boxes and retrieve emails. The service then needs to process the emails which will involve: Validating the email against some business rules (does it contain a valid reference in the subject line, which user sent the mail, etc.) Analysing and saving any attachments to disk Take the email body and attachment details and create a new item in the database Or update an existing item where the reference matches the incoming email subject line What is the best way to approach this? I really don't want