imap

Russian Character encoding with IMAP

穿精又带淫゛_ 提交于 2019-12-14 03:09:48
问题 I have a PHP script that accesses an imap mailbox. When I send through English, Spanish and French it works perfectly but Russian I realize it is probably an encoding issue but nothing I try seems to work. this is what it printed: PiAq8NLJ18XUIM3PyiDE0tXHKiAuCj4+Cj4+Cj4+Cj4K $email=$_REQUEST['email']; $mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "info@******.com", "**********"); $num_mensaje = imap_search($mbox,"FROM $email"); $body = imap_fetchbody($mbox,$num_mensaje[0],"1"

Transfer complete datas(subfolders) using IMAP - PHP Email migration [closed]

萝らか妹 提交于 2019-12-13 21:34:39
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago . I want to transfer Full amount of data(All subfolders) from one imap server to another , without any data loss. 回答1: I'm not sure what you mean by 'PHP Email Migration', as I don't see how PHP fits into the equation. That said, there are a few MAP migration tools that can

IMAP Message UID

余生颓废 提交于 2019-12-13 19:11:37
问题 In RFC3501 there is 2.3.1.1. Unique Identifier (UID) section: A 32-bit value assigned to each message, which when used with the unique identifier validity value (see below) forms a 64-bit value that MUST NOT refer to any other message in the mailbox or any subsequent mailbox with the same name forever. Most tools like Zend\Mail in PHP use the microtime, process id and uname to generate an UID for an email. So I get something like 1400603156.789.5617.imac.home,S=129:2,S . This is not conform

imap_open: Can't open stream

主宰稳场 提交于 2019-12-13 18:04:48
问题 I'm trying to use imap_open() for my FatCow email account. Here's my code: $mbox = imap_open("{imap.fatcow.com:143}", "account@domain.com", "password"); Here's what I receive: Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.fatcow.com:143} in /home/alfatcom/public_html/test.php on line 2 Maybe the reason is that FatCow uses STARTTLS? Anyway, what am I doing wrong? 回答1: In my case it was {domain:110/pop3/novalidate-cert}INBOX that helped me in fixing both the CLOSED IMAP

Unexpected characters returned when reading email using ImapX

雨燕双飞 提交于 2019-12-13 15:36:09
问题 When reading the body of an email using ImapX there is unexpected text at the end. A simplified version of the code is using (var imapClient = new ImapClient(host, port, useSSL)) { if (!imapClient.Connect()) throw new Exception(string.Format("Failed to connect to {0}:{1}", host, port)); if (!imapClient.Login(username, password)) throw new Exception(string.Format("Login failed for {0} connecting to {1}:{2}", username, host, port)); imapClient.Folders.Inbox.Messages.Download(); foreach (var

Imap_search very slow

瘦欲@ 提交于 2019-12-13 13:18:03
问题 I'm using the imap_search to get a list of messages from my INBOX. I want only the emails sent from the address, lets say "somemail@gmail.com". I'm doing like: $headers = imap_search($box,'FROM "somemail@gmail.com"', SE_UID); But this takes so many time, around 3 minutes and the inbox have only 700 emails (my box is GMAIL). The problem is not from the server, because i installed roundcube in the localhost and loads the emails quickly. What can i do to make it faster? 回答1: This method has

IMAP- Parsing original headers from a bounced mail

孤街醉人 提交于 2019-12-13 11:06:23
问题 I am sending hundreds of emails with an unique id through email header. I have to track the bounced mails for the particular unique id. I can see the bounced emails with an attached EML file in my mailbox. Unfortunately the unique ID which I am looking for is placed in the attached EML file's header instead of bounced email's header. I am using PHP's IMAP function to read the headers and body sections. But unable to read EML attachment. Could any one explain how to read or parse the EML

Reliably Clean Email Message Body Encoding

扶醉桌前 提交于 2019-12-13 08:45:49
问题 I am writing a small piece of software in php which connects to a IMAP email box and stores the messages contained therein in a MySQL DB for later processing and other goodness. I have noticed that during testing I get some strange characters appearing in the message body when I attempt to save the message body raw. I am using imap_fetchbody() to extract the message body. I noticed that when I use quoted_printable_decode() to clean up the message body this helps! However in doing lots of

How can I read email with HTML format in a Delphi application?

人盡茶涼 提交于 2019-12-13 07:28:12
问题 I have created a program that can read email from Exchange 2007. However, it can only read the body of the email in plain-text format. When I tried to retrieve email in HTML format, my software cannot read the body and it always blank. I am using Delphi 2007 and IMAP 9. Update: Here is my code: procedure TForm1.tmrCekTimer(Sender: TObject); var TheFlags: TIdMessageFlagsSet; TheUID: string; TheMsg: TIdMessage; MailBoxName: string; MyClass: TComponent; begin MailBoxName := 'INBOX'; if TheImap

Pass-through NTLM authentication in a web app on an IMAP mail server

北慕城南 提交于 2019-12-13 06:23:22
问题 I'm in need of using NTLM authentication in my web application against an IMAP mail server. Authentication in the web app itself is NTLM too. Thus, the user opens the web app interface and the web server end grabs the inbox of that user on the mail server authenticating via NTLM. Is that possible if I never store (neither I have access to) the user's password? Is there any way to link the client's browser and the IMAP server via my web app so that token exchange would occur between them and I