imap

Processing IMAP email in PHP

I need to process an email inbox, monitor it for messages with a particular subject line. If it finds a match I need to get the body content, manipulate, and insert into a database. Ideally would mark the message as read and move it to another IMAP folder as well. I'm poking around PHP documentation imap_open (http://us2.php.net/imap%...

IMAP in Php: Marking a message unread/unseen

I want to create a script in php to read al mail from a mail acount. I connect to the server, I can see the mails but went I want to seet it back to unseen I can't find a function to do this. ...

Moving from IMAP gmail to Google Apps for domain

Hi, I've got a gmail account that I use to check my IMAP mail from my domain right now and its working OK. I want to move to using google apps for my domain so i dont have to setup accounts etc using my hosting company. Can I do that with my existing google account or do I have to loose my gmail and get a brand new account etc setup aga...

How can you send mail using IMAP?

I'm developing a lightweight Gmail client for mobile phones. It access Gmail by IMAP. Then I want to send a draft from the Drafts folder, but it has some attachments and I can't download all of them to send it by SMTP. Moving/copying it to "Sent Mail" doesn't send it, just moves it to that folder. How can I send a Draft directly withou...

Mail Server download help

Hi, Is there any mail server, which can use with javamail, simple in operating, having POP3, IMAP, and SMTP support? I know James, but it doesn't provide support for IMAP. Is anybody know? ...

IMAP connect issue

I am using IMAP client from this link [http://www.codeproject.com/KB/IP/imaplibrary.aspx?fid=91819&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2865930&fr=1#xx0xx%5D. When I to connect to server, the response is coming something like, "220 Mail.servername.co.in Microsoft ESMTP MAIL Service, Version: 6...

Find Gmail url-IDs via IMAP

One of my favourite features of Gmail is the ability to bookmark urls to certain messages like this: https://mail.google.com/mail/#all/124c8f386d41fd3a What I would like to do is write a script that accesses my Gmail account via IMAP and creates an HTML page with links like the above to each message I am interested in. However, it see...

Non-English IMAP folder names and Outlook

I am using Courier IMAP server for an application which lets access to the mailbox through various clients. I have a problem when someone is using Outlook/Outlook Express, and creates or reads a mailbox folder with non-english characters. I have a web based application, which does a proper encoding of these folder names using UTF-7 as de...

IMAP server that can dynamically create mailboxes, how to make iPhone client refresh?

I have an IMAP server which creates mailboxes (folders) dynamically, and I'm having trouble getting the iPhone's IMAP client to refresh them. It normally sends a LIST command when it first logs in, but then it won't send another until you exit the Mail app a couple times and/or go back and forth to the account listing screen a couple tim...

Is there any legal way to create IMAP folder with hierarchy separator character in the name?

In the IMAP protocol there is a folder hierarchy character. If you try to create folder with such character in the name, mailserver will create two folders. For example, if a delimiter character is "/", then command CREATE "aaa/bbb" will create two folders aaa and bbb in folder aaa. Is it possible to create single folder with delimiter ...

How to make sure that the multiple pop3 clients download the same emails from the same email address

We are building an application where user can send email to single email address, we want multiple servers to download the email using pop3. currently the multiple servers are downloading the same email multiple times. How we can make sure that the same email can be downloaded only once? The email contains attachments. ...

flex pop3 imap socket

how can i communicate gmail pop server from flex i used pop.gmail.com and port =995 using Socket() class but it returns 220 mx.google.com ESMTP but i dont understand nothing. ...

Using python imaplib to "delete" an email from Gmail?

Can you delete emails with imaplib? If so how? ...

Bounced email parsing

I'm currently having a mess about with catching, parsing and sorting bounced emails. I have the basics set up nicely and it does what I want, which is nice... problem being is that there seems to be no standard to the messages returned in the bounced email. For example, some servers return the error code as specified by RFC 1893 and I c...

Manipulating Email on IMAP server with imapFilter

I am writing a Lua script that works with IMAPfilter (http://imapfilter.hellug.gr/), that is able to change the names of MIME attachments for example: Content-Type: application/pdf; name="Final Fäntäsy.pdf" is converted to Content-Type: application/pdf; name="FinalFantasy.pdf" Currently, this is done via exporting the mail to the...

Cross Platform C++ IMAP Library

Are there any cross-platform (only interested in Windows and OS X) IMAP libraries which I can use from C++? Preferably open source as well. I am currently using the IMAP library from Chilkat, but this is Windows only. I've found libEtPan and VMime and just wondered if there were any others I could look at to compare. ...

[PHP] Translating IMAP body based on their encoding

Hi all, From the manual, I know that there are 6 different transfer encoding in IMAP. At this point, I've created this basic function: function translate_imap_body($body, $encoding) { switch($encoding) { case 0: return $body;break; case 1: return $body;break; case 2: return $body;break; case 3: return base64_decode($body);br...

reading mails using python

how do i read mails from my mail box using python?? import getpass, imaplib M = imaplib.IMAP4('IMAP4.gmail.com:993') M.login(getpass.getuser(), getpass.getpass()) M.select() typ, data = M.search(None, 'ALL') for num in data[0].split(): typ, data = M.fetch(num, '(RFC822)') print 'Message %s\n%s\n' % (num, data[0][1]) M.close() M....

Problems reading any messages in my gmail inbox using php imap

<?php $inbox = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", "****@gmail.com", "*****", OP_HALFOPEN) or die("can't connect: " . imap_last_error()); $check = imap_check($inbox); print_r($check); imap_close($inbox); ?> o/p stdClass Object ( [Date] => Tue, 8 Dec 2009 17:06:46 +0530 (India Standard Time) [Driver] =>...

Authenticate imaplib.IMAP4_SSL against an Exchange imap server with AUTH=NTLM

Yesterday, the IT department made changes to the Exchange server. I was previously able to use imaplib to fetch messages from the server. But now it seems they have turned off the authentication mechanism I was using. From the output below, it looks as if the server now supports NTLM authentication only. >>> from imaplib import IMAP4_...