imap

How to retrieve email from email server using IMAP?

Hello, I'm developing managing email server using vb.net and asp.net i need sample or open source component to retrieve emails from my email server (get new messages - all mesgs - delete msg - copy msg - etc ) using IMAP Protocol. ...

imap custom keywords

where do I begin? I can't seem to find any definitive documentation. (I am probably looking in the wrong places....). I want to be able to edit IMAP keywords (for tagging purposes) for email messages. I have some really noobie questions; how are they added? are keywords applied directly to message headers (if so, what is the syntax), ...

imap_delete not working

I am using php imap functions to parse the message from webmail. I can fetch messages one by one and save them in DB. After saving, I want to delete the inbox message. imap_delete function is not working here. My code is like that: $connection = pop3_login($host,$port,$user,$pass,$folder="INBOX",$ssl=false);//connect $stat = pop3_list($...

How to store mail info for mail client

I'm working on a side project right now for an email client. I'm using a library to handle the retrieval of the messages from the server. However, I have a question on caching. I don't want to fetch the entire list of headers everytime I load the client. Ideally, what I'd like to do is cache them and then update the list with what is...

PHP - Sending mail with through gmail?

Is there any way to send mail from a gmail account to someone? And by "from" i mean so that it stores the email in the gmail inbox aswell...? I've tried using imap, but i'm not sure if that's the correct way? Either way i get this error: Warning: imap_mail() [function.imap-mail]: "sendmail_from" not set in php.ini or custom "From:" hea...

Imap not downloading emails after certain date

Hi , I am working on Email client application. I have written one sample program for downloading emails from Gmail account using IMAP client library, It downloads emails from AllMail folder. Here I am facing very different problem. my sample application won’t download emails after certain date. Actually I have created my Gmail...

Is it possible to check if an email contains an attachement just from the e-mail header?

I am developing an email client in Python. Is it possible to check if an email contains an attachement just from the e-mail header without downloading the whole E-Mail? ...

Show Email body in textbox from listbox Imap/pop3

Hi, So I have a listbox that shows the subject of an email (I use the chilkat imap client) when I select the subject of an email I want to show the message body in a textbox but i cant figure out how to do it, obviusly i use the listbox selectindexchanaged event but how would i go about it Code So Far // Create an object, connect to ...

How do I find variables in a string?

I receive leads via email when someone submits a form residing on a website on which I pay to advertise. Using PHP, I can access my email account (IMAP), get and read messages, but I'm having trouble extracting certain information from the body of the email. I can explode (\n) the body but cannot figure out how to extract the needed in...

How to group e-mails by thread?

I need to recognize if email message is an response for message sent by my application, to put it into same email thread (something like gmail does). How can I mark an email or what data let me to recognize if it's an answer for one of previous messages in a thread? I'm connecting through IMAP protocol, but I can easily switch to pop3 i...

IMAP access to Gmail inbox with XOAUTH

I'm following the example, I already have authorized my application (=obtained the access token) but trying to access the inbox results in this: 21:14.12 > NDIB1 AUTHENTICATE XOAUTH 21:14.17 < + 21:14.17 write literal size 480 21:14.74 < NDIB1 NO [ALERT] Invalid credentials (Failure) 21:14.74 NO response: [ALERT] Invalid cred...

Removing previous part from Reply emails

Hi, I'm trying to write application that periodically receives e-mails. It writes every mail into database. But sometimes i'm getting 'Re:' e-mail that looks something like this: New message On September 21, 2010 24:26 Someone wrote (a): | Old message | The format depends on e-mail provider. Is there any library that...

How do I use connect to Gmail's IMAP server using oauth in Rails3?

I found the gmail_xoauth gem, which does most of what I need, but I also need to generate the oauth tokens (consumer_key and consumer_secret) from inside Rails3. I am trying to integrate Gmail's oauth integration into my site and hence cannot use the python script that the above gem refers to. I would like my site to take the user to th...

Javascript IMAP and SMTP client?

Is it possible to build a SMTP/IMAP client that can run in the browser that uses only Javascript? ...

How to get 'Message-ID' using imaplib

I try to get an unique id that's not change during operation. I think UID is not good. So I think 'Message-ID' is the right thing, But I don't know how to get it. I know just imap.fetch(uid, 'XXXX'), Anyone has a solution?. ...

php - javascript webmail app for hobby project

I am a relatively new web developer looking for a hobby project thats substantial enough to actually learn a fair bit of php and other web related stuff. I'm thinking of a small simple webmail client but am unsure exactly where to start. I'm sure I will be using the php imap support a fair amount but but does anyone have any specific p...

PHP - IMAP test if an email alias exists

Is there a programmatic way to test the existence of an email alias when logged in as an IMAP client from a remote host rather than sending an email or having to parse the aliases file on the mail server? It is a Postfix mail server. Edit: I found an example of email validation over SMTP and this looks like what I need. However on my...

How to find Gmail mailboxes in other languages

I need to select the 'Sent' and 'Spam' folders in Gmail, but I have an account that does not work. I've found out later that the folders are in non-English language, but it doesn't seem to represent the unicode characters of those language either. Does anybody know how to find out which one is the 'Sent' or 'Spam' folder of a Gmail accou...

PHP IMAP connecting to server TIMEOUT

Hi! I'm coding very simple email client app with PHP. On my local dev server everything works just fine, but when I move the very same script on production server I get the "Can't connect to secure.emailsrvr.com,993: Connection timed out" response. I tried almost everything, searching the google for two days, but no solution found! Bot...

IMAP search by subject fails on gmail

I am using the php imap libaray's imap_search() function to search mails in gmail inbox via subject string. imap_seach($mbox, 'ALL SUBJECT "<search string>"'); This search returns perfectly fine for alphanumeric strings but fails when it has special characters like slash, comma, colon, single quote, hyphen, colon and many other charact...