imap

Can I prevent IMAP from grabbing files over X mb using PHP?

I'm building a little script that will connect to an IMAP account and grab the content of the email and also the attachments. It works well for the most part, but when a really large file comes in, it causes the script to time out. Is there any way that I can check the file size before trying to grab it? I think that would be the simp...

imap_open() says "invalid remote specification" and fails to connect

When I try to use imap_open I get the following error: Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.domain.com:110/pop3/novalidate-cert/} in /path/to/mailbox.php on line 5 Can't open mailbox {mail.domain.com:110/pop3/novalidate-cert/}: invalid remote specification My phpinfo says that I have: IMAP c-Client Ve...

Forwarding an email with python smtplib

I'm trying to put together a script that automatically forwards certain emails that match a specific criteria to another email. I've got the downloading and parsing of messages using imaplib and email working, but I can't figure out how to forward an entire email to another address. Do I need to build a new message from scratch, or can ...

How to save copy of outgoing email in IMAP "Sent" box using ActionMailer?

When I use my regular client and send email through SMTP for an IMAP account, that outbound email gets saved in the IMAP "Sent" box. How can I have the same behavior when I send email using Ruby on Rails ActionMailer? ...

Can't get message body of certain emails from inbox using the Zend framework?

Hi guys I'm trying to read through an email inbox for my application - I'm using the zend framework here. The problem is that I'm unable to retrieve the message body for certain emails. The following is my code as to how I'm doing this: $mail = new Zend_Mail_Storage_Imap($mail_options); $all_messages = array(); $page = isset($_GET['pa...

imap_open dies when being called

Hi, I've got the following code: print "foo"; imap_open("{localhost:143/imap/notls}", "myname", "mypass"); print "bar"; The script dies. I get zero responds, nothing from apache, no "foo" or "bar", nothing. I can however connect to the imap server (nc localhost ...), I can also put the script on another server and connect ...

IMAP Php bug - Workaround for this?

Any work around for this problem? http://bugs.php.net/bug.php?id=28419 ...

Rails send mail with GMail

Hi Everyone, I am on rails 2.3.5 and have the latest Ruby installed and my application is running well, except, GMail emails. I am trying to setup my gmail imap connection which has worked previously but now doesnt want to know. This is my code: # Be sure to restart your server when you modify this file # Uncomment below to force R...

Statistics of IMAP vs POP vs Exchange ?

Hello, I'm desperately looking for some statistics about usage of POP versus IMAP versus Exchange-MAPI, especially in professional context. I know IMAP is used for accessing mails from mobile devices with limited bandwidth, whereas POP is the good old standard, and Exchange is more business-oriented. Does someone know the approximate pe...

php imap_search SINCE date problem

I'm trying to show only the emails received in the last 5 min for example $since = date('d-M-Y G\:i', time() - 300); // current time - 5 min $mb = imap_search ($m_mail, 'UNSEEN SINCE ' . $since . ''); Is there an easy way to do this ? I find a way: take all the unseen mails for the current day (ex:9 may 2010), loop it and then checki...

What mail storage should I choose for our web application; IMAP, key-valud store, rdbms, ...

I have to store e-mail messages for use with our application. I have "metadata" for all messages inside a relational database, but I don't feel comfortable keeping message content (gigabytes and terabytes of email data) inside a database. I'm currently using IMAP as a storage, but I have my doubts if I choose correctly. First of all ther...

Getting "Segmentation fault: 11" with imap extention

Hello everyone, This is something that irritate me from some time - I am using php imap extension to connect to email box and retrieve emails. Before with php version 5.2.9 all worked well , but had to upgrade to 5.2.13 because the production server running this version. Then it start crashing with "Segmentation fault: 11" on imap_fetch...

how to retrieve a specific message from imap with consistent id (message id)

Hi, I need to keep a link tracking for an email message. I am using PHP and IMAP. I need some ID that identify the email over time. Using IMAP UID does not seems to work since the UID changes after expunge(), i know there is a message_id for emails, but how can i retrieve an email using it's message_id with PHP and IMAP? Is there anoth...

Zend Framework - Not Connecting to IMAP mail server - instead dumps empty php file

Hi guys I'm trying to connect to an imap mail server using zend frameworks Zend_Mail_Storage_Imap function. Its working with some accounts but with most accounts it just dies out. I'm connecting using: $mail = new Zend_Mail_Storage_Imap(array('host' =>$current_dept->incoming_server, 'ssl' =>$current_dept->ssl, 'port'=>$current_dept->inc...

any erlang library to query imap servers?

is there any erlang library to query imap servers? ...

Get Mail with PHP and IMAP in Gmail just loading

I'm not sure why. Ive tried a bunch of different code. Wrote it myself, and copied other people's tutorials but every bit of code it's loading forever and eventually stops due to script processing times on the server. Does anyone know why? Oh, and IMAP is turned on, i get IMAP / Exchange on my iPhone from this same account fine. And IMAP...

How do I turn a PDF email attachment to an image (jpg) in a PHP page?

Hi guys. Long time viewer, first time question asker. I'm trying to have my personal website parse through my mail box for attachments from a certain subscription list, and then be able to view the PDF attachments as images, preferably jpg. With the help of this: http://www.linuxscope.net/articles/mailAttachmentsPHP.html I'm currently...

Imap protocol In Java

Where can I get an opensource library written in Java, especially for imap protocol? Something like imaplib in Python. ...

Problems with PHP System_Daemon and IMAP connection.

I'm trying to create a PHP daemon that connects to an IMAP server and processes emails as they come in. I have it close to working, but the daemon keeps grabbing the original emails that it finds the first time the daemon is loaded. I believe the reason is because I'm opening the IMAP connection in the parent process. Example below: i...

IMAP Oauth in c#

There are plenty of IMAP clients for C#. However I can't seem to be able to find one that supports the OAuth extensions to use with Gmail. Has anyone come across any which handles this? ...