Questions tagged [poplib]

A python class which encapsulates a connection to a POP3/POP3_SSL server and implements protocol as defined in RFC 1725.

This python module defines a class, POP3, which encapsulates a connection to a POP3 server and implements the protocol as defined in RFC 1725. The POP3 class supports both the minimal and optional command sets. Additionally, this module provides a class POP3_SSL, which provides support for connecting to POP3 servers that use SSL as an underlying protocol layer.

62 questions
0
votes
1 answer

Extracting a body of an email using [Python 3.6]

I have an inbox and I need to write a code that triggers every time a new message arrives, and extracts a body of that email. I have this code so far: import poplib, email from email import parser pop_conn =…
Feyzi Bagirov
  • 1,292
  • 4
  • 28
  • 46
0
votes
0 answers

Fetch permanent address of your email message

I want to open particular mail(gmail) directly. gmail provide permanent address to each mail. for example https://mail.google.com/mail/u/0/#inbox/164f55ec5fdbb840 here 164f55ec5fdbb840 is unique id. The link will redirecting to specific mail. Is it…
Hitesh Ghuge
  • 793
  • 2
  • 10
  • 39
0
votes
2 answers

Pydev can't import poplib

I'm using Aptana Studio 3 beta which comes with Pydev, everything appears to be working apart from I can't import poplib which is part of the standard library. I added poplib to the Forced Builtins and it seems to prevent it marking it as an error…
cerberos
  • 7,705
  • 5
  • 41
  • 43
0
votes
1 answer

Unable to retrive G-mail with python3

I'm unable to find ANY code that will function to retrieve Gmail. import poplib from email import parser SERVER = "pop.gmail.com" USER = "user@gmail.com" PASSWORD = "password" pop_conn =…
John Bailey
  • 137
  • 2
  • 11
0
votes
1 answer

How can I work with poplib when my email has many multiple folders?

Multiple folders like inbox, dustbin, outbox and so on. The python module poplib seen just searches the inbox. How can I search all of my email? And can I choose just one of them? I want to get the number 11818 and the number 611.
0
votes
1 answer

error when using poplib to get email

I am using poplib to get email from the POP3 server. But this error occurred: Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\site-packages\myutils.py", line 251, in dxDown …
Treper
  • 3,539
  • 2
  • 26
  • 48
0
votes
0 answers

Python poplib: retrieve email without header result to Error

I found a code here and tried it out for myself however I keep getting an error that I dont know how to resolve. The error is this: TypeError: initial_value must be str or None, not bytes this is caused by msg = email.message_from_string(j) My…
lu_laude
  • 91
  • 1
  • 9
0
votes
1 answer

Populate email programatically with a From field in a POP3 server

I have a POP3 email account (Outlook) and I am able to retrieve emails from it programatically using poplib library (NodeJS). Now I would like to populate emails in the server programatically: generating a new email where I can specify the "From",…
user411103
0
votes
0 answers

Why can't I log into my Gmail with POP (poplib) in python?

I am trying to login to my Gmail with POP. I have enabled POP/IMAP on my Gmail privacy settings, as well as "Access for less secure apps". I always get the same error. Traceback (most recent call last): File "scan.py", line 10, in…
suky
  • 1
  • 1
0
votes
0 answers

Ubuntu Getmail and python poplib inserts special characters in mail's body

I'm using Getmail (http://pyropus.ca/software/getmail/) to check a POP3 account regularlly and download arriving mail to a folder. On a second step I parse those mails using Python and use the sent data. The problem is that, as the received mails…
Martin
  • 660
  • 10
  • 23
0
votes
1 answer

Python and gmail

I try to get email from gmail: box = poplib.POP3_SSL('pop.gmail.com') print box.getwelcome() print box.user(user) print box.pass_(password) print box.list() but I get: +OK Gpop ready for requests from ####### +OK send PASS +OK Welcome. ('+OK 0…
0
votes
0 answers

poplib Python base64 content encoded twice?

I am trying to read content from Gmail using poplib. The content in my email is mostly base64 encoded but contains some additional symbols. However, when I read the content using poplib, for some reason my original content is base64 encoded again.…
user3603634
  • 95
  • 2
  • 11
0
votes
1 answer

python poplib .retr(n) inserting "=", inserting '3D' and splitting objects

I am using poplib to grab emails from a mail server. The method retr(n) retrieves the nth email message. It returns messages in a funny form where everything is broken into lines and placed in a tuple. What gives! : it inserts the characters '3D'…
user442920
  • 857
  • 4
  • 21
  • 49
0
votes
2 answers

Add adding if/else to python parser

I have a snippet of code here that uses gmail POP to to parse messages coming from a text message (1xxxxxxxxx7@vtext.com). I want the parser to be able to search for multiple strings in the message, and run code accordingly per each different…
SuperAdmin
  • 538
  • 2
  • 7
  • 20
0
votes
2 answers

python poplib.POP3 decrypt base64

I'm trying to download all emails from pop3 into a text file with this python code: def Download(pop3,username,password): try: Mailbox = poplib.POP3(pop3, '110') Mailbox.user(username) Mailbox.pass_(password) numMessages =…
AutoSoft
  • 191
  • 1
  • 1
  • 11