Questions tagged [imap]

Internet message application protocol (commonly known as IMAP) is one of the two most prevalent Internet standard protocols for e-mail retrieval, the other being the Post Office Protocol (POP).

imap
Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

Got Different Email Subject While Retrieve Using Mailkit

Currently I'm trying to retrieve email message from outlook o365 using Mailkit 3.4.2 and connect via IMAP. When I try to get the message detail, there is different value between the original email ...
mimto's user avatar
  • 21
1 vote
0 answers
712 views

I get connection failed when i try to read my emails with laravel-imap

I am having the following problem using laravel-imap to retrieve my emails. This error is: connection failed I describe what I did: Install with composer composer require webklex/laravel-imap ...
Sarah's user avatar
  • 284
1 vote
1 answer
3k views

connect to Outlook server using imap has error b'LOGIN failed.'

I have a Microsoft account, that is an enterprise account, and I want to use IMAP in Python to connect to the Outlook server, port 993. I got this error after running ('b'LOGIN failed.''). I also used ...
Trần Tiến Văn's user avatar
1 vote
1 answer
158 views

Gmail SMTP works in SpringBoot but not on Tomee Server

I am using exactly the same settings for javax Mail session, which works like charm in SpringBoot App but fails in Tomee Server. On SpringBoot's application.properties, I have the following settings (...
Singam's user avatar
  • 493
0 votes
0 answers
281 views

Python imaplib fetch command: not working with 'RFC822' but works with 'RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Bcc ...'

This is a minimal example of fetching emails from IMAP server using Python imaplib package. (You can check a similar source code from the official documentation.) import imaplib import email HOST=&...
user19906's user avatar
  • 333
0 votes
1 answer
193 views

imaplib STORE failed - Mailbox has read-only access. Cannot Delete Yahoo Email

trying to delete emails in my yahoo account using imaplib. i'm new to python, figured out most of the code but unable to find anything that works relating to this error. imap = imaplib.IMAP4_SSL(...
Andy D's user avatar
  • 23
0 votes
1 answer
566 views

How to get name of all email attachments of a particular mail using imaplib, python?

I am trying to fetch all the attachments of email messages and make a list of those attachments for that particular mail and save that list in a JSON file. I have been instructed to use imaplib only. ...
Shiva Kharbanda's user avatar
0 votes
0 answers
138 views

How do I resolve IMAP connectivity error?

Can anybody help regarding this issue. The email didn't received through the imap_open function. I have seen a problem with this function. imap_open($hostname, $username, $password) or die('Cannot ...
MUNEEB SALEEM's user avatar
0 votes
1 answer
1k views

I'm having trouble authenticating to Office 365 IMAP using Chilkat OAuth2. "Authenticate failed"

Good Afternoon, I have an application and we're trying to connect to out IMAP server using Chilkat (PHP Extension), via the Client Credential Flow method, since it's supposed to be a server-to-server ...
Andre Felipe Vieira's user avatar
0 votes
1 answer
434 views

c# - MailKit imap download attachments in memory/byte[] (No access to the file system)

I need to download attachments from an email, i'm using imap (using MailKit) I don't have access to the file system, I have to convert it to byte[], since I have to store it in an azure storage. I ...
user14299165's user avatar
0 votes
1 answer
199 views

php, imap server username field

I am trying to list e-mails using an php library in a laravel project found at this link: https://packagist.org/packages/ddeboer/imap. The library by itself is not a problem, since its object oriented ...
Filipe Cruz's user avatar
1 vote
0 answers
610 views

Why is XOAUTH2 failing for Microsoft 365 IMAP?

I'm using the php-imap2 library to connect to Microsoft 365 IMAP (well, trying to). According to Microsoft documentation and the other questions on SO, it looks like this should be correct, but it's ...
Will Regelmann's user avatar
0 votes
0 answers
74 views

Does the IMAP protocol have a 2 step deletion process for folders in the same way it does for email messages? (2nd step being purge/expunge)

I'm trying to troubleshoot some very strange issue with different email clients and IMAP scripts giving me different folders. Folders that have been "deleted" from the account are still ...
LaVache's user avatar
  • 2,527
0 votes
0 answers
76 views

How to refresh the Gmail mailbox without logging back in with IMAP

I need to read large amounts of email right as they come in but due to Gmails login rate limits I cant log in and log out each time to refresh the mailbox. Is there another way to do so?
drag6ter's user avatar
0 votes
1 answer
620 views

Completely delete + purge/expunge IMAP folders using Python imaplib

I'm using this script to bulk delete empty IMAP folders: https://gitlab.com/puzzlement/delete-empty-imap-dirs #!/usr/bin/env python import getpass, imaplib, sys, argparse import parseNested IGNORE ...
LaVache's user avatar
  • 2,527
0 votes
1 answer
385 views

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 ...
Rehman Ali's user avatar
0 votes
1 answer
149 views

Search Emails in Mailbox with Imap_tools & Mailparser

First post after searching all over the site. I am trying to search the body of emails in a outlook mailbox for email addresses. I am using Imap_tools, MailParser and Beautiful Soup. I need to get any ...
litenchi's user avatar
0 votes
0 answers
492 views

Getting an error when listing mailbox of Office365 with imapflow in nodejs

I got an error when a user of my app try to list all the mailbox of a Microsoft mail account. The error : {"response":{"tag":"7","command":"BAD","...
Vianney's user avatar
0 votes
0 answers
40 views

Python how to decode windows-874 [duplicate]

A Robot I made crashes because of the following error, can you please advise 29%|███████████████████████▋ | 32/111 [00:47<01:56, 1.47s/it] ...
Ludo's user avatar
  • 1
0 votes
1 answer
341 views

Mailkit: unable to send email using "kakao.com" and "daum.net" email accounts

I am able to send emails using the "Gmail/Office365/Outlook/Yahoo/AOL/Naver" account. But unable to send emails using the "kakao.com/daum.net" email accounts. Kakao.com: SMTP ...
Prashant Girase's user avatar
0 votes
0 answers
518 views

How to connect to my Microsoft mail using python to retrieve mail?

I'm unable to connect to my email. Some information about Microsoft IMAP sever name, host, encryption I got from this link https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-for-...
samsonmarandi's user avatar
0 votes
1 answer
431 views

Return value of Webklex\PHPIMAP\Connection\Protocols\ImapProtocol::moveMessage() must be of the type boolean, array returned

When connecting to 365 via OAUTH we attempt to move a message to a folder and receive the error Return value of Webklex\PHPIMAP\Connection\Protocols\ImapProtocol::moveMessage() must be of the type ...
Neo's user avatar
  • 2,365
0 votes
0 answers
48 views

Programmatically Change Domain of Email Address

I have a bunch of email addresses at abc.com, and I want to change them to the cde.com domain. Can I do it programmatically? For example [email protected] --> [email protected]
Aanand S's user avatar
0 votes
0 answers
43 views

WinError 10060 and elipses(three dots)

import imaplib, email, os user = 'mail' password = 'pass' imap_url = 'imap.gmail.com' con = imaplib. IMAP4_SSL(imap_url) con.login(user,password) print(con.list()) I am trying this on my IDLE and ...
Harshil Shah's user avatar
1 vote
1 answer
487 views

Connecting to office 365 outlook shared mailbox is not working with IMAP. DEBUG IMAPS: LOGIN command result: A1 NO LOGIN failed

public class EmailTest { public static void main(String[] args) throws MessagingException { Properties props = new Properties(); props.put("mail.imaps.starttls.enable&...
Saiteja goud's user avatar
0 votes
0 answers
197 views

return the IMAP results

I have a getMail method like this: async getMail() { let email_array = []; var buffer = ''; var imap = new Imap({ user: 'myuser', password: 'mypassword', host: '...
paranoid's user avatar
  • 7,009
0 votes
0 answers
436 views

Reading attachments over IMAP in NodeJS

How to read and save mail attachments in db using IMAP? I used this code to read text contents of email. I need to read attachments with this. const imap = new Imap({ user: '[email protected]', ...
Manikandan Rajaboopathi's user avatar
1 vote
0 answers
117 views

How IMAP UID works when it crosses 4 billion mark?

As mentioned in the RFC3501 the max value of UID assigned to each mail is "4,294,967,296 (Non-zero unsigned 32-bit integer)", so what would happen if that UID value is crossed? I am ...
Kaneki21's user avatar
  • 1,440
0 votes
1 answer
191 views

How to save files from Incoming email using imap_tools into AWS S3 bucket

I have an email server hosted on AWS EC2. I am using imap_tools for retrieving email content. when I tried to get the file through the payload, I get this return; att.payload # bytes: b'\...
Azeez Oluwasegun Akinsola's user avatar
1 vote
1 answer
639 views

Save Attachments using Powershell

I am using Mailozaurr (Mailozaurr Web Site) to connect to my mailbox using IMAP and i am trying to download attachments $Client = Connect-IMAP -Server 'outlook.office365.com' -Password $Password -...
Yagami Light's user avatar
  • 1,756
0 votes
1 answer
4k views

python read outlook emails with oauth2

I've been using basic auth to log in to my outlook email with imap. imap = imaplib.IMAP4_SSL("imap-mail.outlook.com") # authenticate imap.login(username, password) status, messages = imap....
Adi Lerman's user avatar
0 votes
2 answers
79 views

How to get while loop to get updated in python

I am using a while loop in python in a project and it's not getting any updates and I have to turn it off and on again. Is there a way to make it update? Here's the code: import imaplib username =&...
Zen35X's user avatar
  • 28
0 votes
1 answer
369 views

javax.mail.MessagingException: Connect timed out; [closed]

I need to fetch the Zoho mail using Java. I enabled imaps in Zoho mail settings, but I am getting "javax.mail.MessagingException: Connect timed out" error in the following code. public class ...
Belle's user avatar
  • 39
0 votes
0 answers
185 views

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", ...
nsubhadipta's user avatar
2 votes
0 answers
577 views

OpenSSL verify fails, certificate is installed locally

Our IMAP connection to a Exchange Server fails because the certificate validation with openssl fails. The client which initiates the connection is a Windows Server 2019 Standard running openssl 64-bit....
Yanick's user avatar
  • 21
3 votes
1 answer
2k views

Ruby & IMAP - Accessing Office 365 with Oauth 2.0

So MS disabled IMAP for basic auth as we all know. I am trying to figure out how to get the OAUTH 2.0 working using ruby (not ruby on rails). I have Azure APP and everything needed (I think), but I ...
BrandoN's user avatar
  • 313
2 votes
2 answers
7k views

How to access outlook.office365.com IMAP form Java with OAUTH2?

Since Microsoft has announced that access to Outlook IMAP mailboxes with Basic authentication will soon no longer be possible, I'm trying to figure out how to properly open an IMAP mailbox with OAUTH2 ...
Ralph's user avatar
  • 4,641
3 votes
2 answers
2k views

Outlook Office 365 - how to get access token(through API) using username and App password when MFA is enabled?

As you all aware that MS Office 365 changed from Basic Auth to Modern Authentication recently, so it blocks all access from protocols such as IMAP/POP/SMTP. In that case we have to use Access token (...
DarkRose's user avatar
  • 125
0 votes
0 answers
340 views

Is there a way to access emails via IMAP in Blazor WebAssembly

I tried using an IMAP library, but I found out the hard way that the required "System.Security.Cryptography" namespaces have been discontinued since .Net 5 and most (if not all) tutorials ...
SirBrahms's user avatar
0 votes
0 answers
1k views

IMAP Outlook Can not authenticate to IMAP server: AUTHENTICATE failed

I'm fetching some emails on Outlook with a PHP script, the code was working until last week. Error message: [0] => Retrying PLAIN authentication after AUTHENTICATE failed. [1] => Retrying PLAIN ...
Shadoweb's user avatar
  • 6,078
0 votes
1 answer
3k views

imaplib.error: b'LOGIN failed' when trying to login using imaplib

I got that error, credentials is ok and was working in the morning. Reset password did not change, logging into OWA works fine, login using imaplib fails with "LOGIN failed" after 1 minute ...
xxxxxx's user avatar
  • 9
0 votes
0 answers
176 views

Imap library works perfect for gmail but why php imap library do not work for reading Webmail inbox

hello guys hope you are doing well ! I am here with a problem related PHP Imap. I have done integration of Imap in Laravel. It reads my google mail like [email protected] successfully and works as ...
muhammad adnan's user avatar
1 vote
1 answer
2k views

Webklex\PHPIMAP Modern Auth Not Working 365

As with most people, Microsoft are turning off basic authentication. This means we need to use Modern Auth to retrieve emails from a mailbox. We've been able to implement retrieval of the access ...
Neo's user avatar
  • 2,365
0 votes
0 answers
286 views

Python IMAP lib: unset \Seen flag after moving email

I use imaplib to connect to a mailserver. Then I fetch emails using: status, messages = imap.select("INBOX") emails_queue = [] for i in range(int(messages), 1, -1): res, msg = imap.fetch(i,...
Aurélien Pierre's user avatar
0 votes
1 answer
247 views

Email conversation or threading

If A send a mail to B,C, reply for that mail from B is correctly mapped to the mail that is sent by A. How the mapping of reply and reply all is done internally? If Retrieval of the mail from inbox ...
Aswini's user avatar
  • 1
0 votes
1 answer
158 views

Deleting with IMAP4.uid Apple Mail: UID command error

I'm trying to revive a python 2 code that I found on github to clean out my icloud mails. My code logs in, selects INBOX and fetches status, IDs and UIDs successfully using imaplib.IMAP4_ssl as ...
user2822564's user avatar
0 votes
1 answer
152 views

Escaped characters (of form &AOk- for «é») in IMAP4 list response, using IMAP4_SSL in Python

I am using Python's imaplib module, specifically the IMAP4_SSL class to get emails from a server. When I download messages, non-unicode characters are usually escaped as quoted printable escape codes ...
Émile Jetzer's user avatar
1 vote
0 answers
450 views

Is there a way to authenticate IMAP using OAuth but keep using the php native functions?

So, I have a PHP5.3 application that uses Imap to connect to a Microsoft 365 mailbox. We've always used basic auth for everything. However, starting today, Microsoft doesn't support basic Auth for ...
Andre Felipe Vieira's user avatar
21 votes
5 answers
22k views

Office 365 IMAP authentication via OAuth2 and python MSAL library

I'm trying to upgrade a legacy mail bot to authenticate via Oauth2 instead of Basic authentication, as it's now deprecated two days from now. The document states applications can retain their original ...
quickshiftin's user avatar
  • 67.8k
0 votes
1 answer
266 views

C#: How to connect to imap server and download attachments from an inbox subfolder

Assume, we have an email inbox sub-folder with hundreds of emails with many image attachments inside of every email in the folder. And we want to download all attachments locally. How can we do that?
Rafael's user avatar
  • 1,429

1
3 4
5
6 7
91