imap

How can I download IMAP mail attachments over SSL and save them locally using Perl?

I need suggestions on how can I download attachments from my IMAP mails which have attachments and current date in subject line i.e. YYYYMMDD format and save the attachments to a local path. I went through the Perl module Mail::IMAPClient and am able to connect to the IMAP mail server, but need help on other tasks. One more thing to no...

sending IMAP commands using php

I'm trying to access yahoo mail IMAP server with a php script. I read that yahoo requires a specific IMAP command “ID ("GUID" "1")”. How do I send this command ? ...

Attaching labels to messages in Gmail via IMAP using code

Hi guys - concerning Gmail labels - what are they technically speaking. I mean through imap connection I can access a gmail mailbox and go through the emails however let say I wish to create a label and attach it to the emails as I loop through them using code - how can I do that in code? I'm using php - and Zend Framework. EDIT === Th...

Did someone port uw imap c-client to iPhone OS (device)?

I downloaded the source code, typed 'make oxp' then I got a file named 'c-client.a', I think it is for X86. But how can I build this library for iPhone OS (device)? ...

IMAP protocol support in different email servers

Having to interact with several different email servers via IMAP (using javamail), I have found that there is a very different level of support for IMAP features among them. The lack of support of some features has resulted in more developing time, more complicated code to deal with different support, worse perforamance due to not being ...

Can't mark email read with InterIMAP, folder is read-only

I'm trying to mark emails read (/SEEN) with InterIMAP, but this doesn't work. I stepped through the code with debugger, and found out that the response from mail server is "IMAP0078 OK Store ignored with read-only mailbox.", which pretty much tells me why it doesn't work. But it looks like there's no way to tell InterIMAP to open the con...

How to retrieve a IMAP body with the right charset?

Hi Guys, I'm trying to make an "IMAP fetch" command to retrieve the message body. I need to pass/use the correct charset, otherwise the response will come with special characters. How can I make the IMAP request/command to consider the charset I received in the BODYSTRUCTURE result?? ...

Save email as draft in php

Hello, The past few days I've been trying to find out how I can save emails as drafts using php. I've created an emailaddress that uses imap (and resides on the same server). What I would like to do is to use php to create an email and store it in the drafts folder. These emails would then be recognized by the email client (ms office o...

IMAP Idle Timeout

Lets say I am using IMAP IDLE to monitor changes in a mail folder. The IMAP spec says that IDLE connections should only stay alive for 30 minutes max, but it is recommended that a lower number of minutes is selected - say 20 minutes, then cancel the idle and restart. I am wondering what would happen if the mail contents changed between...

Which Perl module would you recommend for sending and getting e-mail?

Hello! I am searching a Perl module to write (SMTP) and read (IMAP) e-mails. Which module out of the bunch would you suggest? ...

flex imap library

Hey all, I'm looking for an imap library to use in flex but can't find any. I know that can be done from scratch, but thought i should ask before reinventing the wheel. Thanks in advance for any pointers. ...

Javamail performance

Hi, I've been using javamail to retrieve mails from IMAP server (currently GMail). Javamail retrieves list of messages (only ids) in a particular folder from server very fast, but when I actually fetch message (only envelop not even contents) it takes around 1 to 2 seconds for each message. What are the techniques should be used for fast...

How to determine the UID of a message in IMAP

I'm working in a mail client project using C#. I'm using both the POP and IMAP protocol to communicate with the server. The problem is than I can not figure out why when I want to get the UID for a message the result from the POP server and the IMAP server are different. POP C: UIDL 1 S: +OK 1 UID2-1269789826 and IMAP C: $ FETCH 1 (...

InterIMAP, Viewing UNREAD IMAP mail and Downloading Attachments in C#

I was wondering if anyone can help me on this cause its driving me mad trying get this working I was working with the trail of mail.dll from http://www.lesnikowski.com/mail/ which is an extremely fantastic tool which unfortunately i cannot afford being a student (even though its around 150eur, its still very expensive to me :/) and this...

add a custom RFC822 header via IMAP?

Is there an easy way to add a custom RFC822 header to a message on an IMAP server with imaplib? I am writing a python-based program that filters my IMAP mail store. When I did this with Procmail I had the option of adding headers. But there doesn't seem to be a way to do that with the Python imap implementation. Specifically, I want to...

Downloading attachments to directory with IMAP in PHP, randomly works

I found PHP code online to download attachments to a directory using IMAP from here. http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html I modified it slightly changing $structure = imap_fetchstructure($mbox, $jk); $parts = ($structure->parts); to $structure = imap_fetchstructure($mbox,...

Seekable iterator implementation in Zend_Mail_Storage

I'm new to the IMAP protocol and Zend_Mail_Storage and I'm writing a small php script for a cron job that should regularly poll an IMAP account and check for new messages, and send an e-mail if new messages have arrived. As you can imagine, I want to only poll the IMAP account for relevant messages, and I only want to send a new e-mail ...

Fetching of multiple email mails headers

Hi Does IMAP C-client support fetching of multiple email mails headers at a time. If possible please help me. Meanwhile I know that It can be possible using objective C Imap libraries. I want to do same thing using IMAP C-client libraries. Thanks In advance Subbi ...

is it possible to write a webapp that can download mails from exchange server 2007

It does not matter what programming language. Can anyone please give me an idea if this is possible and any tools or API's available please? ...

How to identify Draft from Inbox and Sent mails In ALL MAIl mailbox

Hello, I am working on a mail client Application for downloading gmail emails, which uses IMAP C-client library. I want to download emails from "ALLMAIL" mailbox folder. as you know ALLMAIL folder consists of Inbox,Sent Mail and Draft Mails. Here my requirement is to distinguish Draft from Inbox and Sent mails. Usually if we downlo...