Downloading only gmail's INBOX using offlineIMAPCan I access Gmail's spam message folder using pop3/imap?Why...
Which aircraft had such a luxurious-looking navigator's station?
Did 5.25" floppies undergo a change in magnetic coating?
Is there a frame of reference in which I was born before I was conceived?
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
What type of postprocessing gives the effect of people standing out
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
When should a commit not be version tagged?
As a new poet, where can I find help from a professional to judge my work?
How do ISS astronauts "get their stripes"?
What is the difference between throw e and throw new Exception(e)?
How would we write a misogynistic character without offending people?
Sometimes a banana is just a banana
Book where the good guy lives backwards through time and the bad guy lives forward
Is my plan for fixing my water heater leak bad?
Why proton concentration is divided by 10⁻⁷?
CBP Reminds Travelers to Allow 72 Hours for ESTA. Why?
How to properly claim credit for peer review?
Is there a German word for “analytics”?
Multiplication via squaring and addition
What's the difference between a cart and a wagon?
What can I substitute for soda pop in a sweet pork recipe?
If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?
Six real numbers so that product of any five is the sixth one
How do I construct an nxn matrix?
Downloading only gmail's INBOX using offlineIMAP
Can I access Gmail's spam message folder using pop3/imap?Why doesn't mail that I send from Mail.app on my mac show up on my iPhone's Sent Mail when using gmail?Dovecot configuration with multi-account offlineimap syncingofflineimap: turn idle onHow do I use OfflineImap / Isync with a server with self signed certs (reading emails in Mutt)?OfflineIMAP: Attempts to resync all emails if I define a reverse nametransRunning offlineimap via launchd doesn't survive sleep on OSXConfiguring offlineimap for gmail: SSL errorSending an email with MuttHow to fix SSL rejection in offlineimap
So my offlineimap.conf looks like this:
[general]
accounts = Gmail-raub
[Account Gmail-raub]
localrepository = Gmaillocal-mine
remoterepository = Gmailserver-mine
synclabels = yes
# This header is where labels go. Usually you will be fine
# with default value (X-Keywords), but in case you want it
# different, here we go:
labelsheader = X-Keywords
[Repository Gmailserver-mine]
#This is the remote repository
type = Gmail
ssl = yes
remotepass = super-sercret-password
remoteuser = my-account@gmail.com
sslcacertfile = /etc/ssl/certs/ca-bundle.crt
ssl_version = tls1_2
folderfilter = lambda folder: folder in ('[Gmail]/Drafts')
[Repository Gmaillocal-mine]
#This is the 'local' repository
# type = Maildir
type = GmailMaildir
localfolders = ~/mail/gmail_offlineimap
With the above settings I am able to download Drafts, but if I replace [Gmail]/Drafts folderfilter entry with the [Gmail]/Inbox, it starts as usual
offlineimap -d imap -c offlineimap.conf
OfflineIMAP 6.7.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync Gmail-raub:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAI
N', 'LOGIN']
*** Processing account Gmail-raub
Establishing connection to imap.gmail.com:993
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 version 2.52
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 debug level 5, buffer level
3
and then authenticates and lists all the different mail folders I have. And then filter them all out because of my folderfilter setting. But then it just closes the connection:
[...]
[imap]: 35:06.22 Account sync Gmail-raub state => LOGOUT
[imap]: 35:06.22 Account sync Gmail-raub [sync] LOGOUT ()
[imap]: 35:06.22 Account sync Gmail-raub state_change_pending.acquire
[imap]: 35:06.22 Account sync Gmail-raub _request_push(IDEE11, LOGOUT, {}) = IDEE11
[imap]: 35:06.22 Account sync Gmail-raub data=IDEE11 LOGOUT
imap.gmail.com writer:
[imap]: 35:06.22 imap.gmail.com writer > IDEE11 LOGOUTrn
Account sync Gmail-raub:
[imap]: 35:06.22 Account sync Gmail-raub LOGOUT:IDEE11.ready.wait
imap.gmail.com reader:
[imap]: 35:06.29 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.29 imap.gmail.com reader rcvd 57
[imap]: 35:06.29 imap.gmail.com reader < * BYE LOGOUT Requestedrn
[imap]: 35:06.29 imap.gmail.com reader < IDEE11 OK 73 good day (Success)rn
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler _put_response(* BYE LOGOUT Requested)
[imap]: 35:06.29 imap.gmail.com handler untagged_responses[BYE] 0 += ["LOGOUT Requested"]
[imap]: 35:06.29 imap.gmail.com handler BYE response: LOGOUT Requested
[imap]: 35:06.29 imap.gmail.com handler terminating: 'connection terminated'
[imap]: 35:06.29 imap.gmail.com handler LOGOUT:IDEE11.ready.set
imap.gmail.com writer:
[imap]: 35:06.29 imap.gmail.com writer finished
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler state_change_free.set
[imap]: 35:06.29 imap.gmail.com handler finished
imap.gmail.com reader:
[imap]: 35:06.30 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.30 imap.gmail.com reader rcvd 0
Account sync Gmail-raub:
[imap]: 35:06.34 Account sync Gmail-raub ["<class 'offlineimap.imaplib2.abort'>: command: LOGOUT => connection terminated"]
[imap]: 35:06.34 Account sync Gmail-raub _close_threads
[imap]: 35:06.34 Account sync Gmail-raub call shutdown
imap.gmail.com reader:
[imap]: 35:06.40 imap.gmail.com reader finished
Account sync Gmail-raub:
[imap]: 35:06.40 Account sync Gmail-raub state_change_pending.release
[imap]: 35:06.40 Account sync Gmail-raub connection closed
[imap]: 35:06.40 Account sync Gmail-raub _get_untagged_response(BYE) => ['LOGOUT Requested']
*** Finished account 'Gmail-raub' in 0:01
Why did it terminate the connection? Does it not like [Gmail]/Inbox? I also tried
# folderfilter = lambda folder: folder in ('[Gmail]/INBOX')
# folderfilter = lambda folder: folder in ('INBOX')
and either of them result in a different (but the same between them) error:
ERROR: getfolder() asked for a nonexisting folder 'INBOX'.
email gmail imap offlineimap
add a comment |
So my offlineimap.conf looks like this:
[general]
accounts = Gmail-raub
[Account Gmail-raub]
localrepository = Gmaillocal-mine
remoterepository = Gmailserver-mine
synclabels = yes
# This header is where labels go. Usually you will be fine
# with default value (X-Keywords), but in case you want it
# different, here we go:
labelsheader = X-Keywords
[Repository Gmailserver-mine]
#This is the remote repository
type = Gmail
ssl = yes
remotepass = super-sercret-password
remoteuser = my-account@gmail.com
sslcacertfile = /etc/ssl/certs/ca-bundle.crt
ssl_version = tls1_2
folderfilter = lambda folder: folder in ('[Gmail]/Drafts')
[Repository Gmaillocal-mine]
#This is the 'local' repository
# type = Maildir
type = GmailMaildir
localfolders = ~/mail/gmail_offlineimap
With the above settings I am able to download Drafts, but if I replace [Gmail]/Drafts folderfilter entry with the [Gmail]/Inbox, it starts as usual
offlineimap -d imap -c offlineimap.conf
OfflineIMAP 6.7.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync Gmail-raub:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAI
N', 'LOGIN']
*** Processing account Gmail-raub
Establishing connection to imap.gmail.com:993
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 version 2.52
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 debug level 5, buffer level
3
and then authenticates and lists all the different mail folders I have. And then filter them all out because of my folderfilter setting. But then it just closes the connection:
[...]
[imap]: 35:06.22 Account sync Gmail-raub state => LOGOUT
[imap]: 35:06.22 Account sync Gmail-raub [sync] LOGOUT ()
[imap]: 35:06.22 Account sync Gmail-raub state_change_pending.acquire
[imap]: 35:06.22 Account sync Gmail-raub _request_push(IDEE11, LOGOUT, {}) = IDEE11
[imap]: 35:06.22 Account sync Gmail-raub data=IDEE11 LOGOUT
imap.gmail.com writer:
[imap]: 35:06.22 imap.gmail.com writer > IDEE11 LOGOUTrn
Account sync Gmail-raub:
[imap]: 35:06.22 Account sync Gmail-raub LOGOUT:IDEE11.ready.wait
imap.gmail.com reader:
[imap]: 35:06.29 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.29 imap.gmail.com reader rcvd 57
[imap]: 35:06.29 imap.gmail.com reader < * BYE LOGOUT Requestedrn
[imap]: 35:06.29 imap.gmail.com reader < IDEE11 OK 73 good day (Success)rn
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler _put_response(* BYE LOGOUT Requested)
[imap]: 35:06.29 imap.gmail.com handler untagged_responses[BYE] 0 += ["LOGOUT Requested"]
[imap]: 35:06.29 imap.gmail.com handler BYE response: LOGOUT Requested
[imap]: 35:06.29 imap.gmail.com handler terminating: 'connection terminated'
[imap]: 35:06.29 imap.gmail.com handler LOGOUT:IDEE11.ready.set
imap.gmail.com writer:
[imap]: 35:06.29 imap.gmail.com writer finished
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler state_change_free.set
[imap]: 35:06.29 imap.gmail.com handler finished
imap.gmail.com reader:
[imap]: 35:06.30 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.30 imap.gmail.com reader rcvd 0
Account sync Gmail-raub:
[imap]: 35:06.34 Account sync Gmail-raub ["<class 'offlineimap.imaplib2.abort'>: command: LOGOUT => connection terminated"]
[imap]: 35:06.34 Account sync Gmail-raub _close_threads
[imap]: 35:06.34 Account sync Gmail-raub call shutdown
imap.gmail.com reader:
[imap]: 35:06.40 imap.gmail.com reader finished
Account sync Gmail-raub:
[imap]: 35:06.40 Account sync Gmail-raub state_change_pending.release
[imap]: 35:06.40 Account sync Gmail-raub connection closed
[imap]: 35:06.40 Account sync Gmail-raub _get_untagged_response(BYE) => ['LOGOUT Requested']
*** Finished account 'Gmail-raub' in 0:01
Why did it terminate the connection? Does it not like [Gmail]/Inbox? I also tried
# folderfilter = lambda folder: folder in ('[Gmail]/INBOX')
# folderfilter = lambda folder: folder in ('INBOX')
and either of them result in a different (but the same between them) error:
ERROR: getfolder() asked for a nonexisting folder 'INBOX'.
email gmail imap offlineimap
add a comment |
So my offlineimap.conf looks like this:
[general]
accounts = Gmail-raub
[Account Gmail-raub]
localrepository = Gmaillocal-mine
remoterepository = Gmailserver-mine
synclabels = yes
# This header is where labels go. Usually you will be fine
# with default value (X-Keywords), but in case you want it
# different, here we go:
labelsheader = X-Keywords
[Repository Gmailserver-mine]
#This is the remote repository
type = Gmail
ssl = yes
remotepass = super-sercret-password
remoteuser = my-account@gmail.com
sslcacertfile = /etc/ssl/certs/ca-bundle.crt
ssl_version = tls1_2
folderfilter = lambda folder: folder in ('[Gmail]/Drafts')
[Repository Gmaillocal-mine]
#This is the 'local' repository
# type = Maildir
type = GmailMaildir
localfolders = ~/mail/gmail_offlineimap
With the above settings I am able to download Drafts, but if I replace [Gmail]/Drafts folderfilter entry with the [Gmail]/Inbox, it starts as usual
offlineimap -d imap -c offlineimap.conf
OfflineIMAP 6.7.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync Gmail-raub:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAI
N', 'LOGIN']
*** Processing account Gmail-raub
Establishing connection to imap.gmail.com:993
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 version 2.52
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 debug level 5, buffer level
3
and then authenticates and lists all the different mail folders I have. And then filter them all out because of my folderfilter setting. But then it just closes the connection:
[...]
[imap]: 35:06.22 Account sync Gmail-raub state => LOGOUT
[imap]: 35:06.22 Account sync Gmail-raub [sync] LOGOUT ()
[imap]: 35:06.22 Account sync Gmail-raub state_change_pending.acquire
[imap]: 35:06.22 Account sync Gmail-raub _request_push(IDEE11, LOGOUT, {}) = IDEE11
[imap]: 35:06.22 Account sync Gmail-raub data=IDEE11 LOGOUT
imap.gmail.com writer:
[imap]: 35:06.22 imap.gmail.com writer > IDEE11 LOGOUTrn
Account sync Gmail-raub:
[imap]: 35:06.22 Account sync Gmail-raub LOGOUT:IDEE11.ready.wait
imap.gmail.com reader:
[imap]: 35:06.29 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.29 imap.gmail.com reader rcvd 57
[imap]: 35:06.29 imap.gmail.com reader < * BYE LOGOUT Requestedrn
[imap]: 35:06.29 imap.gmail.com reader < IDEE11 OK 73 good day (Success)rn
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler _put_response(* BYE LOGOUT Requested)
[imap]: 35:06.29 imap.gmail.com handler untagged_responses[BYE] 0 += ["LOGOUT Requested"]
[imap]: 35:06.29 imap.gmail.com handler BYE response: LOGOUT Requested
[imap]: 35:06.29 imap.gmail.com handler terminating: 'connection terminated'
[imap]: 35:06.29 imap.gmail.com handler LOGOUT:IDEE11.ready.set
imap.gmail.com writer:
[imap]: 35:06.29 imap.gmail.com writer finished
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler state_change_free.set
[imap]: 35:06.29 imap.gmail.com handler finished
imap.gmail.com reader:
[imap]: 35:06.30 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.30 imap.gmail.com reader rcvd 0
Account sync Gmail-raub:
[imap]: 35:06.34 Account sync Gmail-raub ["<class 'offlineimap.imaplib2.abort'>: command: LOGOUT => connection terminated"]
[imap]: 35:06.34 Account sync Gmail-raub _close_threads
[imap]: 35:06.34 Account sync Gmail-raub call shutdown
imap.gmail.com reader:
[imap]: 35:06.40 imap.gmail.com reader finished
Account sync Gmail-raub:
[imap]: 35:06.40 Account sync Gmail-raub state_change_pending.release
[imap]: 35:06.40 Account sync Gmail-raub connection closed
[imap]: 35:06.40 Account sync Gmail-raub _get_untagged_response(BYE) => ['LOGOUT Requested']
*** Finished account 'Gmail-raub' in 0:01
Why did it terminate the connection? Does it not like [Gmail]/Inbox? I also tried
# folderfilter = lambda folder: folder in ('[Gmail]/INBOX')
# folderfilter = lambda folder: folder in ('INBOX')
and either of them result in a different (but the same between them) error:
ERROR: getfolder() asked for a nonexisting folder 'INBOX'.
email gmail imap offlineimap
So my offlineimap.conf looks like this:
[general]
accounts = Gmail-raub
[Account Gmail-raub]
localrepository = Gmaillocal-mine
remoterepository = Gmailserver-mine
synclabels = yes
# This header is where labels go. Usually you will be fine
# with default value (X-Keywords), but in case you want it
# different, here we go:
labelsheader = X-Keywords
[Repository Gmailserver-mine]
#This is the remote repository
type = Gmail
ssl = yes
remotepass = super-sercret-password
remoteuser = my-account@gmail.com
sslcacertfile = /etc/ssl/certs/ca-bundle.crt
ssl_version = tls1_2
folderfilter = lambda folder: folder in ('[Gmail]/Drafts')
[Repository Gmaillocal-mine]
#This is the 'local' repository
# type = Maildir
type = GmailMaildir
localfolders = ~/mail/gmail_offlineimap
With the above settings I am able to download Drafts, but if I replace [Gmail]/Drafts folderfilter entry with the [Gmail]/Inbox, it starts as usual
offlineimap -d imap -c offlineimap.conf
OfflineIMAP 6.7.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync Gmail-raub:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAI
N', 'LOGIN']
*** Processing account Gmail-raub
Establishing connection to imap.gmail.com:993
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 version 2.52
[imap]: 39:53.12 Account sync Gmail-raub imaplib2 debug level 5, buffer level
3
and then authenticates and lists all the different mail folders I have. And then filter them all out because of my folderfilter setting. But then it just closes the connection:
[...]
[imap]: 35:06.22 Account sync Gmail-raub state => LOGOUT
[imap]: 35:06.22 Account sync Gmail-raub [sync] LOGOUT ()
[imap]: 35:06.22 Account sync Gmail-raub state_change_pending.acquire
[imap]: 35:06.22 Account sync Gmail-raub _request_push(IDEE11, LOGOUT, {}) = IDEE11
[imap]: 35:06.22 Account sync Gmail-raub data=IDEE11 LOGOUT
imap.gmail.com writer:
[imap]: 35:06.22 imap.gmail.com writer > IDEE11 LOGOUTrn
Account sync Gmail-raub:
[imap]: 35:06.22 Account sync Gmail-raub LOGOUT:IDEE11.ready.wait
imap.gmail.com reader:
[imap]: 35:06.29 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.29 imap.gmail.com reader rcvd 57
[imap]: 35:06.29 imap.gmail.com reader < * BYE LOGOUT Requestedrn
[imap]: 35:06.29 imap.gmail.com reader < IDEE11 OK 73 good day (Success)rn
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler _put_response(* BYE LOGOUT Requested)
[imap]: 35:06.29 imap.gmail.com handler untagged_responses[BYE] 0 += ["LOGOUT Requested"]
[imap]: 35:06.29 imap.gmail.com handler BYE response: LOGOUT Requested
[imap]: 35:06.29 imap.gmail.com handler terminating: 'connection terminated'
[imap]: 35:06.29 imap.gmail.com handler LOGOUT:IDEE11.ready.set
imap.gmail.com writer:
[imap]: 35:06.29 imap.gmail.com writer finished
imap.gmail.com handler:
[imap]: 35:06.29 imap.gmail.com handler state_change_free.set
[imap]: 35:06.29 imap.gmail.com handler finished
imap.gmail.com reader:
[imap]: 35:06.30 imap.gmail.com reader poll => [(4, 1)]
[imap]: 35:06.30 imap.gmail.com reader rcvd 0
Account sync Gmail-raub:
[imap]: 35:06.34 Account sync Gmail-raub ["<class 'offlineimap.imaplib2.abort'>: command: LOGOUT => connection terminated"]
[imap]: 35:06.34 Account sync Gmail-raub _close_threads
[imap]: 35:06.34 Account sync Gmail-raub call shutdown
imap.gmail.com reader:
[imap]: 35:06.40 imap.gmail.com reader finished
Account sync Gmail-raub:
[imap]: 35:06.40 Account sync Gmail-raub state_change_pending.release
[imap]: 35:06.40 Account sync Gmail-raub connection closed
[imap]: 35:06.40 Account sync Gmail-raub _get_untagged_response(BYE) => ['LOGOUT Requested']
*** Finished account 'Gmail-raub' in 0:01
Why did it terminate the connection? Does it not like [Gmail]/Inbox? I also tried
# folderfilter = lambda folder: folder in ('[Gmail]/INBOX')
# folderfilter = lambda folder: folder in ('INBOX')
and either of them result in a different (but the same between them) error:
ERROR: getfolder() asked for a nonexisting folder 'INBOX'.
email gmail imap offlineimap
email gmail imap offlineimap
edited 6 hours ago
raubvogel
asked 8 hours ago
raubvogelraubvogel
112
112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It doesn't "like" Inbox, because the inbox's name is all uppercase, named
INBOX
Trying with a small Python script
import getpass, imaplib
M = imaplib.IMAP4_SSL('pop.gmail.com', 'imaps')
M.login('user.id@gmail.com', getpass.getpass())
ret, data = M.select('INBOX', True)
print(ret, data)
M.close()
M.logout()
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is justINBOX, maybe/INBOXwith offlineimap. See updated answer.
– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g./INBOX.
– Olaf Dietsche
5 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411143%2fdownloading-only-gmails-inbox-using-offlineimap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It doesn't "like" Inbox, because the inbox's name is all uppercase, named
INBOX
Trying with a small Python script
import getpass, imaplib
M = imaplib.IMAP4_SSL('pop.gmail.com', 'imaps')
M.login('user.id@gmail.com', getpass.getpass())
ret, data = M.select('INBOX', True)
print(ret, data)
M.close()
M.logout()
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is justINBOX, maybe/INBOXwith offlineimap. See updated answer.
– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g./INBOX.
– Olaf Dietsche
5 hours ago
add a comment |
It doesn't "like" Inbox, because the inbox's name is all uppercase, named
INBOX
Trying with a small Python script
import getpass, imaplib
M = imaplib.IMAP4_SSL('pop.gmail.com', 'imaps')
M.login('user.id@gmail.com', getpass.getpass())
ret, data = M.select('INBOX', True)
print(ret, data)
M.close()
M.logout()
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is justINBOX, maybe/INBOXwith offlineimap. See updated answer.
– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g./INBOX.
– Olaf Dietsche
5 hours ago
add a comment |
It doesn't "like" Inbox, because the inbox's name is all uppercase, named
INBOX
Trying with a small Python script
import getpass, imaplib
M = imaplib.IMAP4_SSL('pop.gmail.com', 'imaps')
M.login('user.id@gmail.com', getpass.getpass())
ret, data = M.select('INBOX', True)
print(ret, data)
M.close()
M.logout()
It doesn't "like" Inbox, because the inbox's name is all uppercase, named
INBOX
Trying with a small Python script
import getpass, imaplib
M = imaplib.IMAP4_SSL('pop.gmail.com', 'imaps')
M.login('user.id@gmail.com', getpass.getpass())
ret, data = M.select('INBOX', True)
print(ret, data)
M.close()
M.logout()
edited 7 hours ago
answered 8 hours ago
Olaf DietscheOlaf Dietsche
421210
421210
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is justINBOX, maybe/INBOXwith offlineimap. See updated answer.
– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g./INBOX.
– Olaf Dietsche
5 hours ago
add a comment |
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is justINBOX, maybe/INBOXwith offlineimap. See updated answer.
– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g./INBOX.
– Olaf Dietsche
5 hours ago
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
I actually did try [Gmail]/INBOX, but it said it did not exist (ERROR: getfolder() asked for a nonexisting folder 'INBOX'). Using INBOX also gives the same result.
– raubvogel
7 hours ago
It is just
INBOX, maybe /INBOX with offlineimap. See updated answer.– Olaf Dietsche
7 hours ago
It is just
INBOX, maybe /INBOX with offlineimap. See updated answer.– Olaf Dietsche
7 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Actually INBOX was the first thing I tried. I updated my question to include what I mentioned in my previous comment.
– raubvogel
6 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g.
/INBOX.– Olaf Dietsche
5 hours ago
Plain INBOX works with the Python script. Maybe offlineimap needs the leading slash, e.g.
/INBOX.– Olaf Dietsche
5 hours ago
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411143%2fdownloading-only-gmails-inbox-using-offlineimap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown