Some time ago I ve written a Python script, using poplib library, which retrieves messages from my pop3 email account. Now I would like to use it to retrieve emails from different mail server which works with IMAP. It works well, but only to retrieve messages from Inbox. Is there any way to also get emails from other folders like Spam, Sent etc? I know I could use imaplib and rewrite the script, but my questions is if it's possible to obtain that with poplib.
Checking folders different than inbox using poplib in Python
813 Views Asked by DanoPlu At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in EMAIL
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in IMAPLIB
- Unknown IMAP4 command: 'idle' When Accessing Inbox
- imapliy.error:[AUTHENTICATION FAILED) Invalid credentials (Failure)
- How to access yahoo mailbox imap using oauth2?
- python imaplib - gmail cannot be accessed
- See the raw IMAP commands when using imaplib or imap_tools
- how to resolve imap4 error login failed using oulook?
- How can I create HTML email drafts in Gmail using Python?
- Imaplib Error being raised after a few hundred emails flagged
- How to thread emails using X-GM-THRID either in imaplib or imapclient?
- Python/WxPython Program Freezes on Closure After Using Threading - How to Properly Terminate Threads and Resources?
- Getting the error [Errno 111] Connection refused, in an attempt to connect to the site mail.ru via the imaplib library
- How to use functions properly Robotframework IMAP library
- Python live script not functioning to check for new emails in gmail
- Search for all emails sharing common message-id in the references field using IMAP
- What is an elegant way of searching only for new emails in python?
Related Questions in POPLIB
- Python 2.7 POP3_SSL Error connecting to Outlook Mailbox?
- Poplib issue with LIST/STAT (-ERR Command not understood)
- How to use Python smtplib to monitor if there is new email received in the mailbox
- Problem using Python's poplib to check email
- Reading emails using poplib throws an error - poplib.error_proto: -ERR EOF
- Connection Refused Error When Trying to Connect to Outlook Using Python's poplib
- Connection to the exchange server fails with some invalid error while fetching the password
- How to get emails received from gmail python?
- Problem with deleting emails using poplib
- Checking folders different than inbox using poplib in Python
- POPLIB poplib.error_proto: b'-ERR [AUTH] Username and password not accepted.'
- Fetch mails via POP3, but keep them on the server
- Extracting a body of an email using [Python 3.6]
- Fetch permanent address of your email message
- Unable to retrive G-mail with python3
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No.
POP is a single folder protocol. It is very simple and was not designed for multiple folders.
You will need to use IMAP or other advanced protocols to access additional folders.