gmail-imap

Is it worthwhile using IMAP COMPRESS (DEFLATE)?

拜拜、爱过 提交于 2019-12-11 01:18:31
问题 Gmail supports the IMAP COMPRESS Extension (RFC4978), specifically the DEFLATE algorithm (RFC1951) aka zlib/gzip. I'm not normally a Python programmer but I threw a quick test script together using Piers Lauder's imaplib2 to determine performance with or without compression enabled. from time import time import imaplib2, string def cb((response, cb_arg, error)): typ, data = response #print 'Message %s\n%s\n' % (cb_arg, data[0][5]) IMAP_SERVER='imap.gmail.com' IMAP_PORT=993 IMAP_USERNAME='****

Mule ESB: Retrieving email messages from Gmail using IMAP connector

旧街凉风 提交于 2019-12-10 15:52:25
问题 I am new to Mule and im trying to create a Mule configuration that pulls sent emails from a GMail account via imap and pushes them to a php script that processes and stores them in a custom CRM that i've built. For starters, i'm just trying to get the inbox emails dumped into a text files and i plan to work from there. As new messages are received by the mailbox, Mule should pick up the new messages and process them automatically. The Mule config looks like this so far: <imaps:connector name=

Printing out the email address of sender from InternetAddress

╄→尐↘猪︶ㄣ 提交于 2019-12-10 10:22:38
问题 This is the code that fetches up the sender and the subject of email.With this code i see the correct subject getting displayed but i see the address of the sender in different format. Properties props = new Properties(); props.put("mail.imap.host" , "imap.gmail.com" ); props.put("mail.imap.user" , "username"); // User SSL props.put("mail.imap.socketFactory" , 993); props.put("mail.imap.socketFactory.class" , "javax.net.ssl.SSLSocketFactory" ); props.put("mail.imap.port" , 993 ); Session

Cannot connect to Gmail IMAP using XOAUTH on Android

心已入冬 提交于 2019-12-09 22:10:15
问题 I'm building an app that uses Gmail to backup some data. I use XOAUTH to connect to Gmail and got the token and secret. But i could not connect to Gmail's IMAP service. I followed the example at http://code.google.com/p/google-mail-xoauth-tools/wiki/JavaSampleCode: Properties props = new Properties(); props.put("mail.imaps.sasl.enable", "true"); props.put("mail.imaps.sasl.mechanisms", "XOAUTH"); props.put(OAUTH_TOKEN_PROP, oauthToken); props.put(OAUTH_TOKEN_SECRET_PROP, oauthTokenSecret);

IMAP criteria with multiple ORs

白昼怎懂夜的黑 提交于 2019-12-08 20:16:13
问题 I am using gmail's IMAP API to search for mails. I use the 'OR' criteria to search for different keywords. This works well if I go one level only, i.e. something like 'UID SEARCH OR (FROM "somebody@email.com") (TO "somebody@email.com")' however, it does not work when I try a longer expression like criteria OR criteria OR criteria or criteria which translates to (as far as I understand the syntax) 'UID SEARCH OR ( OR (FROM "somebodyelse@email.com") (TO "somebodyelse@email.com")) ( OR (FROM

Access gmail star color from IMAP

那年仲夏 提交于 2019-12-08 04:55:48
问题 Gmail has more stars than just the yellow colored star but they are not enabled by default. http://support.google.com/mail/bin/answer.py?hl=en&answer=5904 Is it possible to search for all messages in Gmail with a certain star color from an IMAP client? I have tried the following with no success: tag SEARCH X-GM-RAW "has:red-star" tag SEARCH X-GM-RAW "has:red-star in:inbox" tag SEARCH X-GM-RAW "has:red-star in:anywhere" 回答1: Yeah, that should totally work. From the Gmail IMAP Extensions page:

Searching emails in gmail based on time

蹲街弑〆低调 提交于 2019-12-07 11:55:08
问题 I want a list of all yesterday's emails from gmail. I am trying to process it using google apps script, by writing a query on my inbox, and then using GmailApp.search. The after: and before: search query in gmail returns results that are not expected, since the query searches on the basis of the SMTP server time that the mail is sent from (which is google's server). Hence, being in a different time zone, the search yields inappropriate results to me. Is there a way to search gmail using a

Google OAuth access tokens

若如初见. 提交于 2019-12-07 11:39:57
问题 I'm so confused by OAuth and Google. It took me forever to get the refresh_token to create a new access_token. Then to find out the refresh_token expires too?? What is the point of that!!!?? All I need to do is persist a valid access_token for use with legato. Here is what I manually enter into my terminal to retrieve an OAUTH code: client = OAuth2::Client.new('GA_CLIENT_ID', 'GA_SECRET_KEY', { :authorize_url => 'https://accounts.google.com/o/oauth2/auth', :token_url => 'https://accounts

Is IMAP CONDSTORE widely supported?

最后都变了- 提交于 2019-12-07 03:14:44
问题 I'm building a simple webmail and I would like to make use of the CONDSTORE extension for IMAP: it allows to fetch everything that has changed (messages, flags, …) since a date, which is very practical to synchronize the email client to the IMAP server. However I have absolutely no idea if this IMAP extension is actually supported by most IMAP servers or not. So is there any kind of source that could tell me how well this extension is supported? For example, does GMail or Hotmail support it?

Access gmail star color from IMAP

一笑奈何 提交于 2019-12-06 16:44:22
Gmail has more stars than just the yellow colored star but they are not enabled by default. http://support.google.com/mail/bin/answer.py?hl=en&answer=5904 Is it possible to search for all messages in Gmail with a certain star color from an IMAP client? I have tried the following with no success: tag SEARCH X-GM-RAW "has:red-star" tag SEARCH X-GM-RAW "has:red-star in:inbox" tag SEARCH X-GM-RAW "has:red-star in:anywhere" Yeah, that should totally work. From the Gmail IMAP Extensions page: Extension of the SEARCH command: X-GM-RAW To provide access to the full Gmail search syntax, Gmail provides