4,528 questions
Advice
0
votes
0
replies
83
views
Recommended methods for migrating large yahoo mail inbox with attachments to SQL Server
Ultimate Goal: To export a massive Yahoo Mail + mailbox with attachments and images to SQL Server
I have a client that has a huge yahoo plus inbox that they are doing away with as they migrate all ...
2
votes
2
answers
166
views
imap_utf8 not always converting utf-8 text
I have the following simple script, running under PHP 8.3.6
<?php
$original = '"=?utf-8?Q?part1=40part2.com?=" <[email protected]>' ;
$converted = imap_utf8($original) ;
printf("...
Best practices
0
votes
1
replies
44
views
How to get older emails from email mailbox
I am setting up a client's own mailbox for all emails from his other mailboxes. The problem is that he wants to retrieve all his old emails from January 1, 2024 to the present. I am using Imapflow in ...
4
votes
1
answer
208
views
Javascript interface not downloading IMAP attachments through PHP
I have a webpage in PHP that lets me access an IMAP account. I can fetch the messages fine. But, when I go to download attachments, Firefox opens the download dialog, but immediately after pops an ...
0
votes
1
answer
83
views
Issue with Jakarta Mail - MessageCountAdapter doesn't seem to work
I'm encountering an issue while using Jakarta Mail to fetch emails and capture specific keywords. Here's the details:
The source code is as follows:
package org.example.receiver.kit.component;
import ...
0
votes
1
answer
65
views
outlook.office365.com using OAUTH2 Times Out inside AWS
I have a test app that successfully connects to our outlook.office365.com account via OAUTH2 and returns the number of unprocessed inbox messages, which currently stands at over 57,000.
However, when ...
0
votes
0
answers
43
views
Not able to login using outlook credentials using imap in pycharm
I am trying to read mails from my outlook account using imap. The server name and the port number is correct. The email_id and password is also correct. I am using a personal account. Do you think I ...
1
vote
0
answers
127
views
Can't Connect to IMAP server using Office365 app password and mail
I wrote this code for a company and they are using Office 365 domain.
The code works in gmail.
On Office 365 server it says login error.
Please note:
The credentials are correct.
IMAP and 2FA has ...
2
votes
1
answer
80
views
imaplib2 | Is this behavior correct? The .uid() method returns different values in the tuple
I am not a programming pro, but I managed to find the following feature when using the .uid() method.
If the email address has unread messages that arrived before authorization and the first call to ...
1
vote
0
answers
100
views
Apply CreateRecipient to Outlook Exchange Distribution list using PowerShell
I have this minimal example code.
$targetEmail = Read-Host "Enter the email address:"
$outlook = New-Object -ComObject Outlook.Application
$namespace = $outlook.GetNamespace("MAPI")...
2
votes
1
answer
94
views
Storing thread specific variables using ExecutorService
Hi there I have an application that connects to n inboxes of users. Since I don't won't to poll new messages I am using the IMAP idle command and a message count listener to listen to new messages.
...
0
votes
0
answers
96
views
Sent emails from Laravel not appearing in Sent folder
I have a CRM section in my Laravel app. In it is the ability to send emails with to, cc, bcc, attachments, body, subject. Users can also choose which account to send this email from. When I was ...
0
votes
1
answer
151
views
Unable to retrieve email using message id in imap, node js
The Problem:
When I try to search for an email using Message-ID, the search returns zero results.
Even though I explicitly set a Message-ID while sending the email, it only appears inside text/rfc822-...
2
votes
1
answer
270
views
How to search for a specific message with Webklex/PHPIMAP?
I'm having trouble understanding the Webklex/PHPIMAP documentation.
The connection, folder search and message return inside the loop are working, but the search for a specific message without ...
2
votes
1
answer
63
views
Sort IMAP email uids based on data Golang
I am using this IMAP Golang package to fetch recent emails from my gmail. I would like to only get the 50 most recent messages. My current approach is fetching every single email uid. I am using imap....
0
votes
0
answers
116
views
Unable to Extract Text from a Specific Email Template in Gmail (Spring Boot & IMAP)
I am working on an email extraction process using Java, Spring boot, and IMAP to read emails from Gmail. The process works fine for most emails, extracting only the text content. However, one specific ...
3
votes
1
answer
3k
views
Error on PHP 8.4-fpm IMAP package install with Dockerfile
In my Dockerfile for php8.4-fpm i am installing IMAP package with the following commands:
FROM php:8.4-fpm
[...]
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
...
0
votes
1
answer
42
views
poolEnrich() allways returning one email on aggregate
Have following route in apache camel:
...
...
.pollEnrich()
.simple("""
imap://${exchangeProperty.imapEndpoint}
?delay=0
&initialDelay=0
&...
1
vote
1
answer
119
views
Delphi 11, IMAP, Command Argument Error. 12 on Windows Server 2016
I have an application that uses Indy TIdIMAP4 to connect to a mail server, read messages, and download attachments. The app works correctly on Windows 10.
When trying to transfer it to Windows 11 or ...
1
vote
2
answers
163
views
imaplib.IMAP4.error: SEARCH command error: BAD [b'The specified message set is invalid.'] , not able search with multiple filter's
mail.select("INBOX")
result, messages = mail.search(None, '(AND ("UNSEEN") ("SUBJECT" "important") ("FROM" "[email protected]"))')
When I use ...
0
votes
0
answers
44
views
PHP IMAP functions all corrupt Chinese gbk character set subject
The following are the relevant raw headers downloaded via Thunderbird / Maildir:
X-Mailer: snPFB 81
Subject: [标题]Sword and Soul is online
Date: Thu, 04 Jul 2024 05:33:41 +0800
Content-Type: text/html;
...
0
votes
1
answer
245
views
.Net Core C# IMAP integration for outlook
I have a requirement where I need to automate clients outlook inbox, where I need to read the emails and process it. Client belongs to different company and he has different outlook/office 365 ...
0
votes
1
answer
145
views
Prototyping IMAP connection to outlook365 server using openssl
I am trying to test connection to Outlook365 IMAP server.
As I understood. The first step should be to obtain access_token using my client_id and client_secret.
I got it using Postman
access_token ...
0
votes
1
answer
51
views
DecodeToAsync does not fill the MemoryStream for a PDF file
I used this code to download the PDF file from attachment. And when I connecting to gmail IMAP it's working great. But when I try to connect another IMAP server DecodeToAsync just can't decode it to ...
0
votes
1
answer
200
views
How to retrieve the full thread of IMAP email message when querying the Inbox?
Using Mailkits (superb) IMAP Api's I need to get the full thread of a message, but when reading the Inbox label I only get the Reply. Here's my small test case...
Initial message sent from Instigators ...
1
vote
0
answers
87
views
Unexpected IMAP behaviour in Go
I have following function in Go that uses emersion/go-imap library. I am calling it every minute. It is manifesting unexpected behaviour in following way:
I am launching the program - nothing happens,...
-1
votes
1
answer
248
views
IMAP connection to outlook C# OAUTH@
Any reason why i cannot connect to imap server outlook? Im using MailKit Lib
log:
Connected to imaps://outlook.office365.com:993/
S: * OK The Microsoft Exchange IMAP4 service is ready. [...
0
votes
1
answer
86
views
How to check if a subject is not in the all_subjects of emails
I have a list of email subjects which were sent today (I connect to my IMAP server, and fetch all emails):
sent_subjects = [
'subject1 backup up completed', 'subject2-2 backup failed', 'subject4 ...
0
votes
0
answers
160
views
Error connect office365 with Webklex Laravel 11
I am trying to connect to Office 365 to retrieve emails.
I am using the Webklex library version 4.1.
I am able to obtain the authentication token to log into the email, but I always receive '...
1
vote
1
answer
302
views
IMAP4 does not authenticate with Gmail in Delphi 2010
I'm very new to Indy, so apologies if there are some glaring issues here.
I'm trying to retrieve emails out of my Gmail inbox, then save them to an array of TIdMessage objects.
I can't find any ...
1
vote
1
answer
205
views
Oauth2 ; credentials from google look ok, but not accepted when connection to gmail using php-imap2
I am using php-imap2 from https://php-imap2.javanile.org/ to access my gmail account therefore to get an access token that I need, I use the oauth2-google client.
I have tested my access token, ...
0
votes
0
answers
83
views
Issues Fetching Unread Emails from IMAP Server
I am using MicroPython on an ESP8266 to connect to an IMAP server and fetch unread emails. Although I can connect to the server and log in successfully, I’m having trouble detecting new unread emails. ...
0
votes
0
answers
76
views
imaplib.IMAP4.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED, unable to access any folder apart from inbox
I am unable to access any other folder apart from the inbox using imaplib. Did try changing the names of the folders to [Gmail]/Drafts but still the same error. The IMAP error: SELECT command error: ...
0
votes
1
answer
140
views
Accessing outlook inbox for personal email using imap from Java console application
I am trying to fetch the inbox from my personal email which is @outlook.com. I have created Azure account and created application and as well as secret as well. But I am getting error
A1 NO ...
0
votes
2
answers
204
views
How to create (or get) folders in MailKit with multiple sub-folders when they are separated in one string with slashes et al?
I use MailKit for creating a folder. This is simple, I can e.g. call CreateFolderAsync (if I want to async way) on the parent folder.
public async Task<IMailFolder> GetOrCreateFolder(string ...
-1
votes
2
answers
76
views
Exchange server doesn't accept store command without explictely selecting the inbox
I have a ImapMailReceiver implementation to receive the emails from remote IMAP server, which works fine with any IMAP servers we tested so far. Nevertheless, one of the Exchange (2016) servers we ...
1
vote
0
answers
303
views
IMAP on Outlook Hotmail takes many attempts (LOGIN failed) to authenticate
I have this code to authenticate/login to hotmail.com via IMAP. I have enabled app password for hotmail/outlook. The only problem is authentication fails with "Login failed" for first 5-10 ...
0
votes
1
answer
787
views
Authenticate an IMAP using Auth2.0 (Microsoft Entra ID) Not Working For Outlook
I am trying to connect the Outlook using IMAP. But nothing seems to be working.
Here's what I am doing to achieve this
Created Microsoft Entra Application Withh all the required permissions
Then ...
0
votes
1
answer
95
views
IMAP Error: EXPUNGE not allowed in session state when creating folder in Laravel
When trying to use the EXPUNGE command after creating folders with the IMAP server, we receive the following error:
BAD [ALERT] i.<unique_id> EXPUNGE not allowed in session state
The EXPUNGE ...
1
vote
0
answers
78
views
Major IMAP services aren’t connecting to imap_open() in PHP
When connecting to a major IMAP service in PHP, I get a "Connection refused" error. I don't understand why this is happening.
I have tried iCloud (imap.mail.me.com), Yahoo! (imap.mail.yahoo....
0
votes
0
answers
49
views
Node.js IMAP Error: Connection Ending Unexpectedly
Here I crawl email for every 10 minutes to updatemy DB, but i am facing problem with last 4 emails, during which my imap connection closes, and hence it do not perform that operation.
export const ...
1
vote
0
answers
385
views
Title: "IMAP Connection Error: 'Socket error: 0x02: Connection not allowed by ruleset' when using SOCKS5 Proxy in Python"
I'm trying to connect to an IMAP server through a SOCKS5 proxy using Python. However, I keep encountering the error: Socket error: 0x02: Connection not allowed by ruleset. Below is the code I'm using:
...
0
votes
0
answers
61
views
How to get letters from a folder in Cyrillic?
I want to receive all letters from a folder in Cyrillic
I tried many different functions, but I didn’t find a working method, everything is ok with other folders
$folder = "Название папки на ...
1
vote
0
answers
333
views
Why am I getting "invalid credentials" error using IMAP4 to access Gmail account?
I am attempting to create a program that can download attachments from gmail, but I am getting this error message:
Exception has occurred: IMAP4.error
b'[AUTHENTICATIONFAILED] Invalid credentials (...
3
votes
0
answers
785
views
Problem with connecting to Outlook via IMAP using OAuth2 authentication
We are building a solution where we connect to email mailboxes via IMAP, fetch and store some relevant emails, so that later we can display them in the web UI. Later on we plan to add support for ...
1
vote
1
answer
438
views
DDEV - how to access Mailpit POP3 server
Need to access builtin POP3 server inside of Mailpit.
Mailpit is mentioning adding auth to enable POP3 feature.
I'm developing code for "unsubscribe" feature available in email clients (not ...
1
vote
1
answer
110
views
Add attachment in node imap
I'm using node imap :
https://www.npmjs.com/package/node-imap
i have this method to save message as draft
imap.once('ready', () => {
imap.openBox('Drafts', false, (err, box) => {
...
0
votes
0
answers
770
views
How get email (gmail account) for Playwright through imap configuration (typescript)
My goal is to read emails during Playwright tests
I follow https://developers.google.com/gmail/api/quickstart/nodejs?hl=en documentation
I save credentials.json from ID clients OAuth 2.0 but an error ...
0
votes
1
answer
209
views
How to match brackets in imapfilter Subject search?
I use imapfilter that uses a Lua script as config.
I am trying to match emails subjects containing [sometext] at any position.
So I tried:
results = account1.INBOX:contain_subject('[sometext]')
This ...
0
votes
1
answer
34
views
Failed Connection to login to Mailserver: NoSuchProviderException. IMAP
fellows,
I want to build an app that can read emails from a mailbox. I’ve checked that the settings for SMTP and IMAP are activated.
Here is the method
public Message[] readMails() throws ...