imap

Python, IMAP and GMail. Mark messages as SEEN

I have a python script that has to fetch unseen messages, process it, and mark as seen (or read) I do this after login in: typ, data = self.server.imap_server.search(None, '(UNSEEN)') for num in data[0].split(): print "Mensage " + str(num) + " mark" self.server.imap_server.store(num, '+FLAGS', '(SEEN)') The f...

Deleting the most recently received email via Python script?

I use Gmail and an application that notifies me if I've received a new email, containing its title in a tooltip. (GmailNotifier with Miranda-IM) Most of the emails I receive are ones I don't want to read, and it's annoying having to login to Gmail on a slow connection just to delete said email. I believe plugin is closed source. I've be...

How to get the recipient address of an email via IMAP in Ruby

We have a user whose mail account is deluged with spam. I'm suspecting that he fields a large number of email accounts and therefore is subject to more than he might be with only one or two addresses. I want to knock up some code which will scan his mailbox and report on the number of addresses that were mailed to (ideally the ones whic...

How to get a high-level view of messages in an IMAP mailbox?

I'd like to see a high-level view of messages in an IMAP mailbox. Eg, Message counts grouped by original recipient thread list-prefix sender Other high-level analysis which can be done without parsing meaning from the message itself What tools exist to do this? I expect some mail clients offer such features, but I'm not aware of a...

migrating emails from imap to exchange 2010 using c#

Hi, I've been given the task of writing a small application to help migrate over 400GB of emails sitting in a public folder structure on a linux IMAP server, to a MS Exchange 2010 Public folders. I've looked at drag and drop with outlook, but there is a problem. Outlook caches all the email locally to a pst file before pushing to Excha...

How to search emails that are not listed in a given MessageUIds using IMAP?

I'm using http://ruby-doc.org/stdlib/libdoc/net/imap/rdoc/index.html to access gmail. I can search for emails with a particular label, but I'm trying to avoid to search an email twice. So in order to do that, I thought that I could store the message_id of each email so that in the next searches I would reefer to that message_id to avoi...

How to save image attachment from email using IMAP & PHP?

Hi All, I've successfully written script that connects to my mail server and retrieves the headers and bodies of all new messages. I want to take it one step further to detect if attachment exists (images only), if so, download to server. How to go about this using PHP & IMAP? Thanks in advance ...

How to efficiently parse emails without touching attachments using Python

I'm playing with Python imaplib (Python 2.6) to fetch emails from GMail. Everything I fetch an email with method http://docs.python.org/library/imaplib.html#imaplib.IMAP4.fetch I get whole email. I need only text part and also parse names of attachments, without downloading them. How this can be done? I see that emails returned by GMail ...

IMAP IDLE in Java

Are there any Java IMAP libraries with support for the IDLE commands, other than Sun Java Mail? I've been using Sun's JavaMail, and it works well, except that it has quite a bit of memory overhead. ...

How to update php-imap on Centos 5.4?

phpinfo: imap IMAP c-Client Version 2004 SSL Support enabled Kerberos Support enabled But imap_header() was crashed on this version library. http://bugs.php.net/bug.php?id=20254 and other Please, help me to update libc-client and php-imap on Centos 5.4 (php 5.2) ...

Get Mail by Subject with mail.dll in Powershell

Trying to Read a string in Powershell from an email with IMAP connect: I use the Mail.dll from http://www.lesnikowski.com/mail/ Docu: http://www.lesnikowski.com/mail/documentation/ I want to search for a specific Subject. What i have so far: [Reflection.Assembly]::LoadFile("c:\mail.dll") $imap = new-object Lesnikowski.Client.IMAP.Ima...

install imap in windows

I'm trying to write a script in php that requires imap functions. I found the functions at here. How do I download and install it in windows ? ...

php imap get connection failed error

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/happy/public_html/source/imap/fet_mail_from_email_add.php on line 7 can't connect: Can't connect to gmail-imap.l.google.com,993: Connection timed out my snippet is $mbox = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", ...

Gmail imap filtering

This is not directly programming related. I have a gmail account and set up filters in there. (for different mailing lists). When I download them using IMAP clients they are not filtered and all messages land in my inbox. Is there a way to force gmail to filter before handing them on through imap? Cheers Wolfgang ...

Get emails from imap server using coldfusion 7

I have tried this example http://www.bennadel.com/blog/1056-ColdFusion-CFPOP-My-First-Look.htm, but it retrieve emails from POP server. Is there any similar way to do for IMAP mail server? I know there is new tag in Coldfusion 9 but I can't use it as I am working in Coldfusion 7. Thanks in advance!! ...

Why does the IMAP protocol treat the Drafts, Junk and Trash folders differently from user-created folders?

When using IMAP clients to access your email, the Inbox and any other user-created folders are synchronized as a reasonable person (my grandmother) might expect - you add/change/delete content on one device and the change is synchronized to the server and to the other devices. However, IMAP appears to treat the drafts, junk and trash fo...

Using PHP's IMAP library triggers Kaspersky's Antivirus

Hello, I just started today working with PHP's IMAP library, and while imap_fetchbody or imap_body are called, it is triggering my Kaspersky antivirus. The viruses are Trojan.Win32.Agent.dmyq and Trojan.Win32.FraudPack.aoda. I am running this off a local development machine with XAMPP and Kaspersky AV. Now, I am sure there are viruse...

how to detect an IMAPMessage is not an email but a Task or Calendar item

I am accessing Lotus and Groupwise using javamail via IMAP, recursively accessing all folders and processing email I find. But in folders like Tasklist and Calendar (those are from Groupwise but I think I remember Lotus had similar things), I get the items in there as instances of IMAPMessage, and so they are processed as if they were m...

IMAP server for local develompent/testing

I'm developing application that will read messages from IMAP server.. what would you recommend for local development/testing (easy configurable light server) Platform - Ubuntu Linux ...

PHP IMAP INBOX message loop

Hi Everyone, I have written a PHP script which connects to my Gmail account and loops messages inside the "INBOX" folder. However, I want to learn the "labels" of each message that exist in the INBOX folder. In other words, I want to learn which other IMAP folder does each message in the inbox exist? In this way, I am planning to write ...