Questions tagged [gmail-imap]

Google mail IMAP interface allows mail clients, and software developers to access google mail using the IMAP standard.

652 questions
6
votes
1 answer

How to read and parse email using npm-imap package in Node js

I went through many links but could not find complete solution anywhere to implement this.
Joobi S B
  • 173
  • 1
  • 8
6
votes
1 answer

Javamail IMAP search by SUBJECT fails

I'm using javamail for imap search by subject on Gmail. I use the subjectTerm class to create a searchTerm object and pass to the search function. Search works fine for subject strings which are pure alphanumeric. As soon as I put in a single quote…
Nands
  • 1,541
  • 2
  • 20
  • 33
6
votes
1 answer

API quota for Gmail REST API and Gmail IMAP using same console app

Gmail IMAP is also moved to Oauth2 authentication. So, we are using same console app for Gmail REST API and Gmail IMAP. My Question : For IMAP and REST API the quota allotted will be shared or each has its own quota? If so can any one share quota…
6
votes
1 answer

IMAP batch fetch text part of messages

I'd like to download the text (that is mime type text/plain, text/html text/richtext) from UID x to UID y. I have the UID's (and not mailbox IDs). How can I do something like FETCH 412444:412500 (BODY.PEEK[TEXT/PLAIN OR TEXT/HTML OR…
danicgross
  • 61
  • 2
6
votes
1 answer

How to display GMail labels in Mutt?

I'm having a hard time trying to display GMail labels inside Mutt. I'm able to display the labels folders very easily, but I would like to display the labels for each mail, using index format. It seems that GMail exposes labels using the extension…
Baptiste Wicht
  • 7,472
  • 7
  • 45
  • 110
6
votes
4 answers

Is IMAP CONDSTORE widely supported?

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…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
6
votes
5 answers

IMAP List extension JAVA

I'm building a tool that need access to mail specific folders (e.g. '[Gmail]/Trash', '[Gmail]/Sent'). It seems that the names are localized with respect to the user localization settings, so '[Gmail]/Trash' show as '[Gmail]/Papelera' to Spanish…
Ydrojen
  • 69
  • 4
6
votes
2 answers

Useful IMAP header information not showing up

I'm using standard IMAP functions to get emails in PHP. I need to keep track of the Message-ID (and References and In-Reply-To) for each message to build threads. Once this system gets deployed, I want users to be able to reply to messages in their…
Carter Pape
  • 1,009
  • 1
  • 17
  • 40
6
votes
3 answers

How to remove a label from an email message from Gmail by using the IMAP protocol?

On Gmail adding labels works just fine: imap.store(item, '+X-GM-LABELS', label) imap.expunge() But: imap.store(item, '-X-GM-LABELS', label) imap.expunge() ...which is supposed to remove the label will just do nothing, without returning an error…
sorin
  • 161,544
  • 178
  • 535
  • 806
6
votes
1 answer

Getting email body without fetching attachments using ruby mail gem

I am trying to fetch the body of gmail using IMAP and ruby mail gem. It works perfectly while I fetch RFC822 field as described in another stack overflow answer.. Fiedl has described the approach very nicely to answer similar question. This…
Mahesh
  • 611
  • 9
  • 16
6
votes
1 answer

Google OAuth access tokens

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…
mnort9
  • 1,810
  • 3
  • 30
  • 54
6
votes
3 answers

imaplib2 : imap.gmail.com handler BYE response: System error

I'm renovating a python script that checks IMAP for new emails and sends a push notification if there's a new email. The problem is that every few hours I'm getting a crash. At first I couldn't really understand what's going on but then I found…
Segev
  • 19,035
  • 12
  • 80
  • 152
6
votes
1 answer

does authorization code for gmail oauth2 ever expires

I am trying to use gmail smtp using oauth 2.0. I have used aspose.dll for requesting access token using authorization url. I do not get refresh token when i get the response.so there is no way to request new access token if previous is expired. So i…
Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125
6
votes
3 answers

IMAP criteria with multiple ORs

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,…
forste
  • 1,103
  • 3
  • 14
  • 33
6
votes
2 answers

Faster reading of inbox in Java

I'd like to get a list of everyone who's ever been included on any message in my inbox. Right now I can use the javax mail API to connect via IMAP and download the messages: Folder folder = imapSslStore.getFolder("[Gmail]/All…
Ben McCann
  • 18,548
  • 25
  • 83
  • 101
1 2
3
43 44