imap

C# Imap Sort command with special characters

半腔热情 提交于 2019-12-25 17:21:16
问题 I'm working on a problem with imap sort extention: My command is the following: var query = "icône"; //byte[] bytes = Encoding.Default.GetBytes(query); //query = Encoding.UTF8.GetString(bytes); var command = "SORT (REVERSE ARRIVAL) UTF-8 " + "{" + query.Length + "}"; var imapAnswerString = client.Command(command); imapAnswerString = client.Command(query); I get the following error: BAD Error in IMAP command SORT: 8bit data in atom I found this: C# Imap search command with special characters

JavaMail - NoSuchMethodError: javax.mail.internet.ParameterList.combineSegments()V

左心房为你撑大大i 提交于 2019-12-25 06:59:19
问题 I need to read (get as string, to be precise) the first message in the Sent Mail folder of a Gmail account, in order to use it's content in automated tests. I'm using JavaMail to do so, with IMAP protocol: public static void main(String[] args) { String invitationContent = "No invitation"; Properties props = new Properties(); props.setProperty("mail.store.protocol", "imaps"); try { Session session = Session.getDefaultInstance(props, null); Store store = session.getStore(); store.connect("imap

SpringIntegration Mail Failed to create new store connection Unrecognised SSL message

北城余情 提交于 2019-12-25 06:38:58
问题 I have a strange exception that happens since a week in a production environment, sporadically. Everything worked fine until now. In the code I am connecting using imap to an MS Exchange server to read the emails. This part of the code is still working ok. Once the email has been read it is archived in a subfolder. This is this part that is sometimes sending exception. The exception is "Failed to create new store connection". And just after this message I always have the following exception

How do you add an email filter to an IMAP email account?

萝らか妹 提交于 2019-12-25 06:26:35
问题 I'm using PHP (zend_mail_storage_imap specifically). I built the first iteration of an email product a few days ago. Basically, I flag and filter a number of emails using zend_mail and an imap email account. The problem is that I'm currently searching the email address every five minutes to see if a new email was received. I'd like to change this by placing a filter in IMAP itself - a filter similar to GMAIL filters. Would this be possible to set this up directly in IMAP? If not, what would

Extracting PHP IMAP attachments

蹲街弑〆低调 提交于 2019-12-25 05:06:24
问题 Hello I have a PHP IMAP functions which extract the attachments of a specific body of an email, I found out this article : http://www.linuxscope.net/articles/mailAttachmentsPHP.html but it shows an error : Warning: imap_bodystruct() [function.imap-bodystruct]: Bad message number I dont know what I am missing. Here is my code session_start(); include('settings.php'); include('vars.php'); $struct = imap_fetchstructure($mbox,$getmsgid, FT_UID); $contentParts = count($struct->parts); if (

Imap error on myname@mydomain.com but working on myname@gmail.com

☆樱花仙子☆ 提交于 2019-12-25 03:44:21
问题 I am having a problem that I cannot find the answer to and would appreciate anyone's help as I am sure I am missing something. I have a company email setup on Gmail but use our company's name as the domain ie. myname@mycompany.com. I am trying to connect to that account using IMAP and PHP but am getting the following error '500 Internal server error'. What I have done/tried: Here is my connection code: $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'myname@gmail.com'; $password

How to determine the smtp server save send mails or not?

给你一囗甜甜゛ 提交于 2019-12-25 01:33:47
问题 When sending mail using SMTP server, how to determine whether the smtp server rely and save send mails to "Sent" folder or not. Example When sending mail using GMail smtp server ( smtp.gmail.com ), GMail server automatically rely and save the mail to "Sent" folder. But few other server like Exchange, GoDaddy,.. these are the servers not saving the mail to "Sent" folder. We have to manually append the message to respective folder using IMAP append command. If I able to find whether the server

What is wrong with this IMAP ESEARCH command syntax?

ぃ、小莉子 提交于 2019-12-24 17:19:34
问题 I am looking for a way to search across all IMAP folders on my mail server. I recently discovered the IMAP ESEARCH command, which extends the usual SEARCH command to search across folders. I cannot, however, seem to make it work. I have checked that the mail server supports ESEARCH . After telnet-ing in, I executed the following: * OK JAMES IMAP4rev1 Server Server server-address is ready. A1 LOGIN test test A1 OK LOGIN completed. A2 CAPABILITY * CAPABILITY SASL-IR IDLE LITERAL+ AUTH=PLAIN

Alternative for IMAP search command

被刻印的时光 ゝ 提交于 2019-12-24 13:26:36
问题 I need an alternative for IMAP search command " A search 1:* unseen not deleted " since the email server is forbidding the search command. I tried using " A status (unseen) " but it always returns zero though there's an unread message. Is there any alternative for the command? Thanks in advance. 回答1: Is your problem that the IMAP server doesn't support SEARCH at all, or that it doesn't like your particular SEARCH command? If it's the latter, we can simplify: A SEARCH UNSEEN UNDELETED (as 1:*

imap_open(): Couldn't open stream

扶醉桌前 提交于 2019-12-24 08:39:16
问题 I am trying to access my gmail inbox using imap. I have applied almost all the possible solutions available here and also in google. But i am facing the same issue. Below is my code : $hostname = "{imap.gmail.com:993/imap/ssl/novalidate-cert}"; $mailbox = imap_open($hostname, 'my gmail account', 'my gmail password'); if ($mailbox) { echo 'if'; } else { echo 'else'; } exit; When i run this code in to my local system it will give me some message like this : Warning: imap_open(): Couldn't open