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).

0
votes
1answer
9 views

Can't open mailbox: Invalid remote specification

I need to write a PHP script to get emails from our exchange server. When trying to get them I'm getting this error: Can't open mailbox: invalid remote specification. At the moment I'm using PHP 5.3....
0
votes
0answers
12 views

i can't connect to Aol account using Imap

i am trying to connect to Aol accounts using Imap and php 5 (connecting to a specific folder like Inbox or Spam) nut the connection fails /* the user choose which folder */ $folder = array('Spam' =&...
0
votes
1answer
30 views

C# mailkit imap client idle mode not getting cancelled

when new email is received, the idle stop method is ran and there it says Imap client is currently busy processing in another thread. i assume its because idle command is still running in the ...
1
vote
1answer
75 views

Why am I not able to connect to my mail box using JavaMail (IMAP protocol) and getting NO AUTHENTICATE failed error?

I am trying to connect to a mailbox through JavaMail IMAP protocol but I am unable to connect successfully. telnet is successful Able to configure outlook web client with same credentials Tried with ...
0
votes
1answer
24 views

CommandFailedException “some FETCH responses could not be transmitted due to errors”

I'm using Javamail 1.5.6 to listen for incoming IMAP messages from a specific mail account. Some messages, coming always from the same sender, show errors when I try to read their size, please see the ...
1
vote
0answers
19 views

PHP 7.1 iMap Extension Doesn't Show Up After Installation on Mojave

I have been trying to enable PHP 7.1 iMap extension on MAC Mojave 10.14.5, but I haven't had any luck getting it to work. Any help will be greatly appreciated. Before any installation, php -v ...
1
vote
1answer
34 views

display the html in the email body

I am working on my code to send the email and store the email in the sent folder. I have got a problem with display the html in the output because it will display the html tags just like this: Hey ...
0
votes
0answers
12 views

How to make a loop with IMAP in Python to keep getting the latest email for sentiment analysis

Basically I am making a code that saves emails locally as .txt files then apply sentiment analysis on it to find angry customers, my current code saves "TODAY'S" emails locally then do the analysis ...
1
vote
0answers
17 views

Detect quoted_printable while extracting links from imap emails

I have the following: if($emails) { $output = ''; rsort($emails); foreach($emails as $email_number) { foreach ([1,2] as $option) { $structure = imap_fetchstructure($...
0
votes
1answer
33 views

ImapIdleChannelAdapter doesn't get message content

I'm using this code to read mail from an IMAP server: @EnableIntegration public class MailIntegration implements HasLogger { @Bean public ImapIdleChannelAdapter messageChannel(...
0
votes
1answer
26 views

Will IMAP be deprecated along with EWS API basic authentication being deprecated?

Based on https://developer.microsoft.com/en-us/graph/blogs/upcoming-changes-to-exchange-web-services-ews-api-for-office-365/ basic authentication for EWS will be deprecated. There is nothing in the ...
0
votes
0answers
21 views

Why do I get the wrong IMAP Server?

I'm trying to get the IMAP Server from an E-Mail address with Python hostname = dns.resolver.query(username.split('@')[1], 'MX')[0].to_text().split(' ')[-1] but I get the SMTP Server and even the ...
1
vote
0answers
31 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 = ...
1
vote
1answer
27 views

C# mailkit imap idle reconnect connection reset by peer

Example program on github page for imap idle throws connection reset by peer after 9 minutes when connected to gmail imap server. Running dotnet core console app on raspberry Pi 3 connected to a ...
0
votes
0answers
14 views

Getting newest emails

Is there an option of getting by FETCH command sorted (the newest) emails (maybe using WHERE clause) or the SEARCH SINCE must be used?
0
votes
1answer
41 views

How to delete only one, specific message using IMAP in Python

I'm looking for one, specific message, and then, after found, I want to delete it from inbox. Just this one. My code: import email import imaplib def check_email(self, user, password, imap, port, ...
0
votes
0answers
17 views

Ruby Imap Multipart Fetch

I trying use the Ruby IMAP library ("net/imap") to get email. I get messages with html and text plain but I need the text plain only ... My Code Is ... imap = Net::IMAP.new('XXX') imap.authenticate(...
0
votes
1answer
30 views

How do I access “gmail” umbrella account with non-gmail domain name?

I need to search through all of someone's emails for a compliance exercise. The individual has one gmail account that he forwards all of his other accounts to. However, I get an authentication error ...
0
votes
1answer
23 views

PHP imap_search KEYWORD documentation how to use

I need to retrieve bounced email using a web app in PHP. I need to find all emails return message starting from an email sent by the web app. For example with an email sent (and saved into my DB ...
1
vote
0answers
54 views
+50

PHP imap_search: Search UTF-8 / Non-ASCII characters with UTF-8 support

This is a similar question to this one here: PHP imap_search: UTF-8 / Non-ASCII characters on Microsoft Exchange mail servers But with the difference, that the mail server in this case supports UTF-8 ...
1
vote
0answers
31 views

How can I access to the proxy server using Java Mail (javax.mail)? [closed]

I tried to access to my office's proxy server to authenticate my email's IMAP server(it's gmail managed by the office admins) for one project. We don't have direct access to our mail server, the only ...
0
votes
1answer
18 views

Trace not delivered / bounced email with PHP, phpmailer and Message-ID

I have a PHP web app with a section to send invoice by email to all partners. Each partner could have more than 1 email. For example: COMPANY-1 with emails: [email protected] and [email protected]
0
votes
0answers
20 views

JavaMail connection to secureimap.t-online.de is refused

We're running a server in our sports club, which requests (among other functionalities) our emails from t-online. Since a few weeks, the connection is refused most times. I search around the ...
-1
votes
0answers
8 views

Getting the text of a gmail body only when attachment is present PHP IMAP

I have some working IMAP php code that gets the subject, from, to, and other headers. However, if the email has an attachment (pdf in this case) when I try to get the body of the email (i.e. "Dear so ...
0
votes
0answers
8 views

is it possible that my imap_open not find emails?

I need some help agian. I looked for the wrong code in my php file since 2-3 days. Now i know, the reason was my webhosting server. The server doesn't support imap_open(). I changed the server this ...
0
votes
1answer
34 views

I cannot receive emails from external domain with virtual users

I cannot receive emails from external domains in my ubuntu 18.04 mail server. i can send to other domains with my sendgrid relay server since outbound port 25 is blocked by google cloud. i can also ...
0
votes
0answers
31 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
1answer
28 views

com.sun.mail.iap.ParsingException: BODYSTRUCTURE parse error: bad ``size'' element

I am trying to read the Bounce mails from an email inbox and I always get the following exception: 2019-05-23 16:05:42 INFO [stdio.AbstractLoggingWriter] (Camel (camel-inbound) thread #24 - ...
1
vote
2answers
29 views

How to fix “imap_utf8” doesn't work for the email's body in php imap

I created a php code to get all the new emails from gmail using imap - also in Hebrew. When I try to use the "imap_utf8" function, it's working only for the subject - and not for the body. (I also ...
0
votes
0answers
26 views

python2.7 imaplib hangs. please me

I am using python2.7 imaplib. When fetching an email message with the fetch command, my program becomes a wait state. Occurs only on a specific server. I finded Waiting section in code I guess this ...
0
votes
1answer
19 views

Receiving IDLE notifications using node-imap

I've successfully connected to a mailbox with node-imap: const imap = new Imap({ user: '[email protected]', password: 'pwd', host: 'imap.yandex.com', port: 993, tls: true }); imap....
1
vote
0answers
40 views

PHP IMAP_SEARCH syntax UNSEEN, SINCE, RECENT, produces unexpected results

I am trying to get a list of the most recent unseen messages from a particular email address. $imapResource = GmailAdapter::imapLogin(); $imapEmails = imap_search($imapResource, 'FROM "[email protected]
0
votes
1answer
29 views

Forwarding an Email(with attachments) without downloading the actual attachments

I want to forward an Email which has some attachments. I don't want to download the attachments and then upload again the same attachments I want to achieve this functionality on IMAP servers like (...
0
votes
0answers
11 views

How to connect to a Shared Mailbox O365 PHP

I am using SSilence\Imap Client and wanting to connect to a shared mailbox, I have tried endless variations of code and cannot get it to work. I can connect to my own mailbox with no issues, I just ...
0
votes
1answer
76 views

TypeError sequence item 0: expected str instance, bytes found

for some reason i keep getting the TypeError at this TypeError Traceback (most recent call last) < ipython-input-19-3490eb36442d> in <module> 2 ...
1
vote
1answer
19 views

Find each folder's starting UID in IMAP efficiently

SELECT, EXAMINE and STATUS command would give me UIDNEXT value of each mailbox(folder). What I am looking for is an efficient way to determine something like UIDFIRST i.e. starting UID for each ...
2
votes
0answers
42 views

Kotlin coroutines & JavaMail blocking IO

I'm experimenting with Kotlin coroutines to write a high performance IMAP client interacting with potentially 1,000's of mail boxes at the same time. I'm using JavaMail to do the IMAP protocol work ...
1
vote
0answers
57 views

Cannot delete emails of domain .co.jp type

I have written java code using java mail API. Which does the following things for IMAPs account: Mark mail as read/Unread. Send/Delete mails. My code works well for most of IMAP mail accounts. I am ...
0
votes
1answer
45 views

Checking mail in a loop thread goes out of memory

I'm using CheckMail task to check the mail every 15 seconds. Every time this task repeats the memory increases. Where is the problem? I'm not instantiating anything. The Client was inside the thread, ...
0
votes
1answer
49 views

How not to download/upload IMAP messages that already exist?

I have a script with a loop that downloads messages from one server and uploads them to another. I'd like not to waste a call on imap_fetchbody and imap_append if the message already exists in the ...
0
votes
1answer
33 views

Mailkit unexpected disconnection from server when downloading headers from Yahoo Mail

I am trying to fetch IMAP headers from Yahoo Mail. It works fine when I try to grab the first 100 headers but it disconnects when I try to get the headers of all 32,000+ emails. I get an exception ...
2
votes
0answers
30 views

How to authenticate IMAP using gmail OAuth?

I am building a java micro-service to read mails. I am trying to connect to com.sun.mail:javax-mail:1.5.5 imap using google's OAuth token, I am sending access_token in place of password and its ...
0
votes
1answer
25 views

I need to stop imap_body from adding line breaks and inserting characters

I am retrieving email in XML ADF format from a gmail account. I am using imap_body to retrieve the emails. Looking at the email account, I can see the emails are received in two ways. The first starts ...
0
votes
1answer
47 views

Ruby net/imap getting OpenSSL::SSL::SSLError - self-signed certificate?

In trying to develop a tool for that would use IMAP to access Gmail, I'm running into difficulties with even this simple start-up code: require 'net/imap' imap = Net::IMAP.new('imap.gmail.com', ssl: ...
0
votes
0answers
12 views

How receive information about email change from IMAP

I'm creating web mail client with storage, so I store all emails in ElasticSearch. My problem and question is, if exist way how I can receive information about email change in other mail client. ...
0
votes
2answers
55 views

Getting all the emails into a list using IMAP

I am trying to create an mail app in Flutter, right now I am testing the back end then I want to integrate it in my app. I am using IMAP to get all my emails from my university and insert them into a ...
0
votes
0answers
13 views

Request for All Google IMAP IP Subnets

I need to know all of Google's IMAP subnet addresses so I can allow bidirectional traffic on my company's firewall between ALL of Google's IMAP subnets and a specific internal client. I've executed ...
0
votes
0answers
38 views

Reading calendar appointments with IMAP in PHP (From Office 365)

I am trying to read the calendar appointments from a shared mailbox in Office365, in particular the appointment dates. I am able to open the mailbox, and output its contents with the following code $...
0
votes
0answers
38 views

How to mark my emails as read or seen in php?

I am working on my php code to mark my email as read or seen. I understand that there is alot of answers out there, I have did alot of google search and I have tried to use each different codes, but ...
0
votes
1answer
49 views

how to ensure that an email is read only once by one of the server in multiserver environment while using JavaMail API

I have a requirement as a part of which i want to read incoming emails from outlook and then do some processing.I am using JavaMail API along with IMAP protocol to implement this.I have written a java ...