Questions tagged [imapclient]

IMAPClient aims to be a easy-to-use, Pythonic and complete IMAP client library with no dependencies outside the Python standard library.

68 questions
1
vote
1 answer

What is the proper way to create IMAP subfolders using imapclient for Python?

I have code that looks something like this import imapclient archive_folder = "Archive" aggregate_reports_folder = "{0}/Aggregate".format(archive_folder) forensic_reports_folder = "{0}/Forensic".format(archive_folder) server =…
Sean W.
  • 4,944
  • 8
  • 40
  • 66
1
vote
0 answers

Python IMAP - search by headers

I am using Python's IMAPClient in my mail client, and basically I am stuck trying to look up messages by their headers. Specifically, I am trying to find all messages with a given in_reply_to value, which is part of ENVELOPE. I have tried the…
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121
1
vote
1 answer

Using IMAPClient in Python to fetch email - need data to be stored in a list

Happy New Year to all of you :) I built a web form where new employees enter their data and have it send to an email address where I receive about 20 "sets" of data coming from PHP. Vorname: $firstname Nachname: $lastname and so on. Now, when I…
rawk
  • 508
  • 1
  • 7
  • 13
1
vote
1 answer

IMAPClient - How to get subject and sender?

I'm trying to make a simple program to check and show unread messages, but I have problem while trying to get subject and sender adress. For sender I've tried this method: import email m = server.fetch([a], ['RFC822']) #a is variable with email…
opliko95
  • 13
  • 5
1
vote
2 answers

imapclient date and time inaccurate

I recently started using imapclient in order to fetch emails from my Yahoo! account. The program is relatively simple. It is as follows: yahoo=imap.IMAPClient('imap.mail.yahoo.com', ssl=True) yahoo.login('myusername', 'mypassword')# cant tell you my…
Jordan A.
  • 384
  • 1
  • 4
  • 17
1
vote
1 answer

Connection error using Net::IMAPClient in Perl

I am trying to connect to an Outlook email server via IMAP and the error I am getting is curious. Here is a sample of my code: use Mail::IMAPClient; my $imap =…
doomsday
  • 83
  • 1
  • 8
1
vote
2 answers

IMAPClient and BODY[HEADER.FIELDS (FROM)] field

I'm really starting to get the hang of IMAPClient. The code: 'BODY[HEADER.FIELDS (FROM)]' returns From: First Last I'd really just like it to return the email address like this: first.last@lbox.com Do I need to pass it to…
0
votes
1 answer

Howto process email from google

Im not sure if this is google or email in general, but I'm seeing a some encoding that im not sure how to handle. Here is a snip that is the Washington post mailer form my google acct. the subject …
Peter Moore
  • 1,632
  • 1
  • 17
  • 31
0
votes
1 answer

Read emails from "Outlook" using ImapClient not working In C#

I developed a console application about 3 years ago and hosted it on our production server. That console application was reading emails constantly from "outlook (Exchange)". It was working fine but I'm not sure why it stopped working suddenly. Right…
0
votes
1 answer

imaplib not able to login any type of accounts in python

I'm currently working on an app where I need to retrieve emails from mail.com or any similar service. I'm trying mail.com though. I have searched and tried almost a lot of solutions available online but nothing seems to work on any service. I have…
Rehman Ali
  • 13
  • 8
0
votes
0 answers

How do I send draft mail using Node.js?

How do I send a draft mail to draft folder using an API or via imap, SMTP? mails.on("message", (message, seq) => { console.log('message',message); message.on("body", stream => { console.log("results123456--------",uid); let…
nsubhadipta
  • 49
  • 1
  • 7
0
votes
1 answer

imapclient not reading an email properly

I'm trying to import in python an HTML table within an email. I tried the following script: HOST = 'imap.gmail.com' USERNAME = username PASSWORD = password ssl = True server = IMAPClient(HOST, use_uid=True, ssl=ssl) server.login(USERNAME,…
younggotti
  • 762
  • 2
  • 15
0
votes
2 answers

How to make the pprint module display the text in Tencent QQ mailbox normally?

I want to get the email in Tencent QQ through the imapclient module. The following is the code I entered: import imapclient imapObj =…
0
votes
0 answers

AttributeError: 'NoneType' object has no attribute 'get_payload'

I just woke up in the morning and suddenly get this error as above while it was working perfectly, simple code as below to print the email body contents. imapObj = imapclient.IMAPClient('outlook.office365.com', ssl=True) # Access IMAP…
Alani
  • 73
  • 6
0
votes
0 answers

Imapclient attachment method

Kindly what would be the method for message object within imapclient library, for example, when fetching a message via UIDs, I can use header = str(message.get_subject()) to get the email message subject, what would be the method for attachments…
Alani
  • 73
  • 6