imap

Push email to a apache/php server

一个人想着一个人 提交于 2020-01-14 04:27:06
问题 We've built a web service that needs to check constantly for email messages. Basically, an user sends us an email, and the server should make actions based on that email. We could use a crontab PHP script that checks for new messages every minute, with POP. But that's kind of offensive to the popserver and not very efficient (1min is too long). But, I've read about PUSH email using IMAP around mobile devices. In my case is not a mobile device but a webserver. Can I push an email to my

DataReader result truncated when reading from StreamSocket

人盡茶涼 提交于 2020-01-14 01:40:08
问题 I have the following c# / WinRT code to receive a response from an IMAP command DataReader reader = new DataReader(sock.InputStream); reader.InputStreamOptions = InputStreamOptions.Partial; await reader.LoadAsync(1000000); string data = string.Empty; while(reader.UnconsumedBufferLength > 0){ data += reader.ReadString(reader.UnconsumedBufferLength); } The results are truncated after 8192 bytes. 8192 looks suspiciously like a limit of some kind. How do I get around this? 回答1: The abstraction of

how to move messages from one Gmail account to another [closed]

给你一囗甜甜゛ 提交于 2020-01-13 20:46:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I would like to create a backup of a Gmail account into another Gmail account. There could be many reasons why would someone like to do this, but in my case my Gmail account got full but instead of deleting messages would like to archive them in another account. I was thinking about using POP3 / all / fetch from

How to get filename of all attachements of email?

左心房为你撑大大i 提交于 2020-01-13 12:13:10
问题 I am trying to get the filename of all the attachements of emails using java and imap.My code is: MimeMessage msg = (MimeMessage) messages[i]; String fileName = msg.getFileName(); System.out.println("The file name of this attachment is " + fileName); but it prints null always even if email contain attachment..I have seen different codes on SO but none worked...and I don't know what to do if attachment is more than one . PS:I only want to get the filename and don't want to download attachments

Change event description for organizer using VCalendar

帅比萌擦擦* 提交于 2020-01-11 13:23:29
问题 currently we are using outlook to create a meeting and send it to email x . Whenever imap mailbox x gets an email it automatically parses and send updated iCal file (with new description) to all participants that was added and organizer. Everything is ok for all participants, except organizer, description in outlook calendar is not updating for organizer (old description is left). I am adding Sequence + 1 , changing timestamp, but still the same problem. Does that mean that for organizer

What's a good mail server for development use? [closed]

我与影子孤独终老i 提交于 2020-01-10 09:53:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm doing some development which will involve reacting to emails, and I'd like to use a local IMAP mail server for this. I currently use Devnull SMTP server for testing of sending emails, but this just logs and discards messages, it doesn't do IMAP for checking incoming emails/mailboxes. I don't need/want a full

What's a good mail server for development use? [closed]

坚强是说给别人听的谎言 提交于 2020-01-10 09:51:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm doing some development which will involve reacting to emails, and I'd like to use a local IMAP mail server for this. I currently use Devnull SMTP server for testing of sending emails, but this just logs and discards messages, it doesn't do IMAP for checking incoming emails/mailboxes. I don't need/want a full

C# Imap search command with special characters like á,é

可紊 提交于 2020-01-09 11:53:28
问题 I'm working on an imap client search function. I use this command: UID SEARCH FROM PÉTER When I run this command i get the following error: Error in IMAP command UID SEARCH: 8bit data in atom I get this error when my pattern string(for example PÉTER) contains accentuated character. What is the solution? What sholud I do? Edit: I try with UTF-8 encoded string ( UID SEARCH FROM PÉTER ), it runs without error, but it doesn't give back any result. I check the test email account, and there are

java 实现 email 邮件发送最简单优雅的方式(网易 163 为例)

ぃ、小莉子 提交于 2020-01-07 08:28:27
如何使用IMAP服务? 首先介绍一些邮件发送的基础知识,如果你已经知道可以跳过。 直接到 Email 邮件发送实现的部分。 IMAP是什么? IMAP,即Internet Message Access Protocol(互联网邮件访问协议),您可以通过这种协议从邮件服务器上获取邮件的信息、下载邮件等。 IMAP与POP类似,都是一种邮件获取协议。 IMAP和POP有什么区别? POP允许电子邮件客户端下载服务器上的邮件,但是您在电子邮件客户端的操作(如:移动邮件、标记已读等),这是不会反馈到服务器上的,比如:您通过电子邮件客户端收取了QQ邮箱中的3封邮件并移动到了其他文件夹,这些移动动作是不会反馈到服务器上的,也就是说,QQ邮箱服务器上的这些邮件是没有同时被移动的。 但是IMAP就不同了,电子邮件客户端的操作都会反馈到服务器上,您对邮件进行的操作(如:移动邮件、标记已读等),服务器上的邮件也会做相应的动作。 也就是说,IMAP是“双向”的。 同时,IMAP可以只下载邮件的主题,只有当您真正需要的时候,才会下载邮件的所有内容。 如何使用IMAP服务? 使用IMAP很简单,首先,您需要先在QQ邮箱中启用IMAP功能,然后,配置好客户端,就可以使用了。 开启 SMTP 服务 QQ 邮箱 【设置】-【账户】-【POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务

How to put message into Sent? [closed]

自古美人都是妖i 提交于 2020-01-07 05:03:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . After sending the message with JavaMail by smtp, how to put it into the Sent folder(IMAP)? What about the non-english mail(ex: in Russian sent=отправленные)? Is there a way to get the name of the "sent" folder programmatically? 回答1: Folder.appendMessages() There's no standard name for the "sent" folder.