Google mail IMAP interface allows mail clients, and software developers to access google mail using the IMAP standard.
Questions tagged [gmail-imap]
652 questions
58
votes
6 answers
HTML formatted email not showing up at all in Gmail but is in other mail clients
I'm currently sending html formatted emails from PHP's mail() function and checking them simply to make sure they are showing up as HTML (formatting aside, I'm well aware that the formatting will vary (probably drastically) from client to client).…

joshholat
- 3,371
- 9
- 39
- 48
40
votes
1 answer
How to understand the equal sign '=' symbol in IMAP email text?
I am currently using Python imaplib to process email text.
I use fetch command to fetch the raw data email from GMail server. However, I found one thing really tricky - the equal sign '='. It is not a normal equal sign but a special symbol.
For…

JXITC
- 1,110
- 1
- 13
- 27
26
votes
5 answers
gmail login failure using python and imaplib
I'm seeking some help logging into a gmail account and downloading some emails using a python script. I'm trying to adapt an approach found here, but I'm running into a problem with step 1, accessing the account via imap.
here is the code I'm…

whopper510
- 487
- 1
- 5
- 11
26
votes
4 answers
What protocol does Google use for Gmail? (not IMAP or POP)
You can access gmail either using the web interface, Google's Android client or using IMAP. As far as I can tell, the web interface and the Android app uses a completely different protocol than IMAP -- they are not just interfaces on top of it. The…

Björn Lindqvist
- 19,221
- 20
- 87
- 122
22
votes
4 answers
Advanced message filter rules in Mozilla Thunderbird
The filter mechanism of Thunderbird is nice for simple things.
But I want to do something like
(If message contains xy or sender is yz) and status is read, move to trash
The problem is, one filter rule can only match any (= OR) or all (=AND) …

user3001
- 3,437
- 5
- 28
- 54
19
votes
2 answers
IMAP: Search for messages with UID greater than X (or generally, after my last search)
I'm writing a script to analyze my mailbox and want to periodically check for new messages. The search criteria would be: give me the UIDs for all emails with UID greater than X, where X is the UID of the last email I processed.
Or, more generally,…

Parand
- 102,950
- 48
- 151
- 186
13
votes
4 answers
cannot connect to Gmail using imap
I am trying to view the contents of the emails received in my gmail inbox using imap but when I'm running the code, I am getting the following error.
ERROR
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite…

Debdut Goswami
- 1,301
- 12
- 28
12
votes
4 answers
Access Gmail Imap with OAuth 2.0 Access token
I am using Google's Oauth 2.0 to get the user's access_token, but I dont know how to use it with imaplib to access inbox.

Kuldeep Kapade
- 1,095
- 3
- 12
- 17
12
votes
2 answers
Fetching Gmails Via Mailcore 2: Thread ID vs Message ID vs UID
I have an iPad application that allows users to access their Gmail accounts using Mailcore2. I thought I had an understanding of the difference between Gmail's Thread Id, Message ID and UID until I looked closely at what Mailcore2 is returning to…

jac300
- 5,182
- 14
- 54
- 89
12
votes
3 answers
Need help optimizing a google apps script that labels emails
Gmail has a issue where conversation labels are not applied to new messages that arrive in the conversation thread. issue details here
We found a Google Apps Script that fixes the labels on individual messages in the Gmail Inbox to address this…

Saqib Ali
- 3,953
- 10
- 55
- 100
11
votes
2 answers
PHP IMAP - Do emails have to have a messageid?
I'm retrieving emails from Gmail using PHP and IMAP; however, some emails don't have a messageid. Aren't all messages supposed to have a messageid?
I need a unique id for reference so i'm not sure how else to keep track of emails without it.
Am i…

vitalyp
- 671
- 4
- 12
- 23
10
votes
3 answers
Read all mails using Gmail API with OAuth
Is there any method to read all mails (i.e. both read and unread) using Gmail API with OAuth.
The following link returns only new mails:
https://gmail.google.com/gmail/feed/atom
So I want all Emails to be retrieved.
Please help me.

user1051536
- 185
- 2
- 3
- 9
10
votes
1 answer
How to manage Gmail labels in mutt
Is there a way to manage Gmail lables(Virtual folders) with mutt??

in3xes
- 714
- 7
- 19
9
votes
3 answers
Link to individual mails in gmail
I want to download all emails in a gmail account and also want to get the unique url which will open the exact mail in gmail, off course with authentication. I tried using javax.mail imap library but Imap probably doesn't supports anything like…

Rohit
- 525
- 3
- 8
9
votes
3 answers
git imap-send with Gmail
Using this Git:
$ git --version
git version 2.5.1
With this configuration:
$ git config --list | grep imap
imap.folder=[Gmail]/Drafts
imap.host=imaps://imap.gmail.com
If I run this command:
cat 0001-alpha.patch | git imap-send
This is the…

Zombo
- 1
- 62
- 391
- 407