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
0 answers
54 views

Issue with OAuth authentication for Microsoft personal account

I am encountering issues while attempting OAuth authentication for my Microsoft account. Here's the situation: I have successfully implemented OAuth authentication for Office 365 (O365) accounts, and ...
-4 votes
0 answers
9 views

How to make a link normal [closed]

Я получаю письмо от тикток на почту, в котором содержиться ссылка на подтверждение этой же самой почты. Я читаю письмо через imap при получении она выглдяит следующий образом https://web-i18n.tiktok....
-1 votes
1 answer
32 views

How to connect to IMAP using office365 and nodejs [closed]

I need some help with connect to office365 using IMAP and javascript. I am trying to connect to office365. I use IMAP fot this. I received the credentials and tried to setup the config like this: ...
0 votes
1 answer
31 views

How to handle multiple async functions when fetching for emails and attachments with IMAP and javascript

I am using IMAP library and javascript to fetch for emails. My plan is the following: Fetch for the emails by email, subject, and a time range. Look for the emails number. For each email, I need to ...
0 votes
1 answer
17 views

How to change headers of an E-Mail inplace (via IMAP)

I have some E-Mails without a Date header in an Inbox. That's why they appear incorrectly in my MUA (Mozilla Thunderbird). So I would like to fix this. There is an extension, with which I could ...
-4 votes
0 answers
39 views

Postal Framework crash in iPhone but runs successfully in simulator

I have integrated the Postal framework in my sample iOS application for IMAP functionality. There is no other functionality - it's just a iOS app with Framework added to it. It uses only one method. ...
0 votes
1 answer
18 views

Subfolders without ancestors on IMAP server

Conceptual question about subfolders and IMAP, for which I haven't found an answer in any of the specs. Say I have the following folders (written in maildir notation, with . being the hierarchy ...
12 votes
1 answer
2k views

Link to IMAP URL Scheme?

There is a RFC for IMAP URL Scheme: https://www.rfc-editor.org/rfc/rfc5092 Creating a link which matches the scheme in HTML is easy. How can I make a link like this work in web clients? <a href=&...
0 votes
1 answer
44 views

How to Fetch Latest Emails without Re-login Using imap_tools in Python?

I'm working on a Python script that continuously checks for new emails in an IMAP mailbox using the imap_tools library. My goal is to fetch the latest emails without having to re-login every time. ...
0 votes
2 answers
55 views

How to get Email Message ID from Azure email service?

I'm trying to send email using azure email communication Python SDK poller = self.email_client.begin_send( message=payload, ) time_elapsed = 0 while not poller.done(): ...
0 votes
0 answers
9 views

IMAP not firing listener events from Node Server like I would expect

I am trying to write my own IMAP connection object because I'm getting errors from Google Gmail saying I have too many simultaneous open connections. I can't seem to capture events from even a very ...
1 vote
1 answer
25 views

ImapCapabilities special characters

With Mailkit i would like check if my server accept '+' in e-mail I thought it was necessary if (!_imapClient.Capabilities.HasFlag(ImapCapabilities.UidPlus)) OR if (!_imapClient.Capabilities.HasFlag(...
0 votes
2 answers
60 views

Why do certain emails go missing when attempting to fetch them using IMAP?

import Imap from 'node-imap' import { simpleParser } from 'mailparser' import { inspect } from 'util' export default async function handler(req, res) { try { const cred = req.body const ...
3 votes
2 answers
12k views

Not able to Login to IMAP server for office365 account via GoDaddy

I am trying to configure a client's office365/GoDaddy account to an email client using IMAP. But it fails to Login to IMAP server. Below is the error: ChilkatLog: Login: DllDate: Dec 21 2018 ...
2 votes
2 answers
929 views

Office 365 Exchange Online permission is not visible for registered application in azure active directory

I have registered the application in azure active directory but when I want to give this permission Office 365 Exchange Online from under APIs my organization use tab, it is not visible there. What ...
0 votes
0 answers
15 views

How to fix "search in state AUTH" errror

As you can see the mail.select() method is after connecting and before search, but keep getting this error(I'm using VS Code): raise self.error("command %s illegal in state %s, " imaplib....
0 votes
0 answers
21 views

Node imap mailparser error after resolve and end connection

Hello I'm trying write async function to be called for 100 seconds to see if new email arrive. Logic works fine, console return new message after resolve, but after this comes errors, like try open ...
16 votes
6 answers
22k views

Sent mails with phpmailer don't go to "Sent" IMAP folder

in my CRM online system I control ingoing mails with IMAP protocol. Now I'm making sending mails with phpmailer and SMTP protocol. Everything is ok but I have one wierd thing. How to make sent with ...
0 votes
0 answers
15 views

Python IMAP4 keeps throwing this error when I'm connecting to Outlook. Has anyone seen this error before?

Here is the Python script I currently have: def get_access_token(): tenantID = '123' authority = 'https://login.microsoftonline.com/' + tenantID clientID = '123' clientSecret = '123' ...
0 votes
0 answers
21 views

IMAP configs for Outlook using Mail-listener

I would like to know if there are any other options in mailbox other than INBOX for example SPAM or Junk Emails for Microsoft Outlook? Currently I am using Mail-listener for IMAP connection and here ...
0 votes
0 answers
8k views

What does `A1 NO AUTHENTICATE failed` error message mean when trying to read e-mails via IMAP?

I have following code which is supposed to open a connection to a Microsoft Exchange server via IMAP: Folder inputFolder = null; Folder doneFolder = null; Store store = null; ...
-1 votes
1 answer
1k views

How to delete emails using UID in imaplib python

I'm trying to delete emails by UID. It's a hotmail email account I'm accessing. Here's what I'm doing: 1. Connect to Email imap = imaplib.IMAP4_SSL('imap-mail.outlook.com') imap.login('my_email@...
43 votes
1 answer
38k views

Delete Email on Server using javax.mail

I am receiving emails from the server using the IMAP protocol like: Store store = session.getStore(mEmailProtocol); store.connect(mEmailServer, mEmailUser, mEmailPassword); Folder folder = store....
0 votes
0 answers
51 views

Is it possible to connect to Google IMAP using OAuth and the client credentials flow (non-interactive way)?

I'm setting up a system that automatically connects to a Microsoft email account using IMAP and OAuth2. This system continuously monitors the mailbox, and upon receiving a new email, it triggers a ...
5 votes
2 answers
9k views

How to forward an email downloaded by PHP and IMAP?

I'm writing a script to read email and distribute it to different email addresses depending on the TO address. All email comes to one address, but I cannot seem to figure out how to forward an email, ...
0 votes
0 answers
50 views

how to generate a pst from folders and eml files with python

I currently have a script that generates email backups from an email account over an IMAP connection. This script downloads all emails in EML format, also creates subfolders and saves emails in their ...
0 votes
0 answers
28 views

BAD User is authenticatedbut not connected Error When Connecting to IMAP with OAuth on Outlook Office 365 in PHP

I'm attempting to connect to an Outlook Office 365 IMAP server using OAuth authentication in a PHP application, but I'm encountering the following error after successful authentication: BAD User is ...
3 votes
0 answers
2k views

A1 NO AUTHENTICATE failed for outlook by using access token

we are trying to login outlook.com in our app by using oauth2.0, we have done the registration of app AAD. App authenticates the user successfully and responds with the access_token, now further we ...
0 votes
0 answers
24 views

Failed IMAP Connection with Webklex PHP-IMAP and OAuth Token

I'm trying to establish an IMAP connection using Webklex PHP-IMAP library with Office365. I've successfully generated an access token using client ID, secret, tenant ID, username, and password. ...
0 votes
1 answer
25 views

Netlify Custom Email [closed]

Problem: I want to switch from hostgator to netlify, but the biggest issue is I am unable to figure out or find documentation so far on how to either transfer existing emails or create new ones for a ...
19 votes
6 answers
15k views

SMTP and IMAP server library for .NET

Does anyone know a good SMTP/IMAP server library for C#? I only found some long abandoned projects. Only SERVER SIDE libraries, please no more posts about client libs. Thanks, Fionn
0 votes
2 answers
928 views

Are there any tools for debugging imap?

Not sure if the library I use to work with imap is working correctly. Constantly shaping queries using telnet or openssl is a bit tedious. Maybe there is some sort of tool that will make this job ...
0 votes
0 answers
35 views

PHP: IMap search not working right - Bad message number

I'm trying to get the last 10 emails of all emails unseen and seen - I also tried using an operator so "UNSEEN SEEN", but that doesn't seem to be working right for me as well. This is the ...
9 votes
3 answers
7k views

Php email body decoding to plain

I'm tying extract some content of some equal emails with php but I can't. With that: $body = imap_body($imap_o, $email_n); I get: Pour = le r=E9cup=E9rer, il suffit de le t=E9l=E9charger, de le r=...
0 votes
2 answers
2k views

Gmail Email Inbox using PHP with IMAP after 30 May 2022

Good day everybody, I hope that someone can help me here... I'm trying to retrieve my mails via PHP script... I used the following script as a template: [https://phppot.com/php/gmail-email-inbox-using-...
2 votes
3 answers
1k views

How can I detect if my fetched email is bounced or not

I fetched emails from servers by using IMAP or POP3 and entered the fetched emails to database but I noticed there are a lot of bounced emails entered to the system so I searched a lot on google to ...
1 vote
1 answer
667 views

Javax.Mail trying to use gmail's imap extension to access X-GM-MSGID

I'm trying to use the X-GM-EXT-1 IMAP extension created by google for gmail in javax.mail. Doc here https://developers.google.com/gmail/imap/imap-extensions I'm specifically trying to fetch a ...
2 votes
3 answers
3k views

PHPMailer how to save an email in Sent items folder on Outlook after being sent in PHP

I am using PHPMailer to send emails notification from our internal stmp server in the company. The emails are sent successfully but not stored in the sent Items folder on Outlook. <?php use ...
1 vote
2 answers
6k views

Getting the information of an email with RobotFramework

I am using Robot-framework with the selenium2library for testing some web-application. The script log in and send an activation URL to some email. I use the ImapLibrary to catch the mail and read it ...
0 votes
0 answers
48 views

How to access yahoo mailbox imap using oauth2?

I am trying to access yahoo mailbox, I have created a yahoo application for the same purpose. After allowing permission to access mailbox, I have access_token and refresh_token for oauth. I am trying ...
0 votes
0 answers
42 views

Using Python with imaplib library or imapclient to do a label-based search in Gmail

I'm using imap library to search in a gmail account however I want to do it taking into account some labels I have over the mails and if they have attachments or not. There is an insane amount of ...
0 votes
0 answers
396 views

Open Mailbox with PHP imap_open, DomainFactory mail

I tried to open my mail server with imap_open(). I always get this error: Warning: imap_open(): Couldn't open stream {sslin.df.eu:993/novalidate-cert} I tried this code: {sslin.df.eu:993/...
0 votes
1 answer
115 views

how can i connect to imap gmail or outlook.office365.com using G1ant robot RPA

Can someone help with the below issue: I'm using the latest version of G1ANT robotic software. I've been able to successfully connect to outlook using the office addon however now I need to access ...
4 votes
3 answers
4k views

I'm using IMAP npm library for fetching mails which says "invalid credentials"

I am using IMAP library to fetch email from gmail. I got reference from Read email body with node js imap and https://www.npmjs.com/package/imap. My implementation is as following: var Imap = ...
0 votes
0 answers
78 views

GreenMail: SSLHandshakeException: Received fatal alert: handshake_failure when try to connect IMAPS

I've been trying to fetch an mocked mail of GreenMail instance through IMAPS protocol and no matter what I do, I keep receiving javax.net.ssl.SSLHandshakeException: Received fatal alert: ...
1 vote
1 answer
3k views

Reading emails with Python

I am writing a python script which can read emails from a person's inbox. import imaplib import email # Set up the IMAP connection mail = imaplib.IMAP4_SSL('imap.gmail.com') mail.login('...
1 vote
2 answers
2k views

Laravel imap get messages sorted by most recent

I am using laravel-imap to retrieve messages from a mailbox: $aMessage = $selectedFolder->query()->setFetchFlags(true)->setFetchBody(true)->setFetchAttachment(false)->leaveUnread() -&...
0 votes
0 answers
28 views

Moving cyrus_imap from old to new problem

I'm moving from a freebsd12 server to freebsd14, cyrus_imapd30 -> cyrus_imap38. ctl_mboxlist 'dump' and 'undump' are not working for me. What I've done:   ctl_mboxlist -d >mboxlist.tmp move this ...
0 votes
0 answers
67 views

How do I login to outlook.com with IMAP using MailKit?

I'm attepting to use MailKit to access the emails in my personal outlook.com account. I'm using the IMAP settings recommended by Microsoft but when I call _imapClient.Authenticate with my username and ...
0 votes
0 answers
39 views

Segmentation fault error using imap php gmail

Im trying to connect to gmail via imap in php but im always get segmentation fault error. Im using php 8.3.2 in macOS Sonoma running the script in the terminal, php imap is working because if a put ...

1
2 3 4 5
91