imap

Recommendations for a .NET component to access an email inbox

I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything similar before and can ...

Deleting messages from Exchange IMAP mailbox on iPhone

I have a secondary Exchange mailbox configured on my iPhone using IMAP. This all appears to work fine except when a message is deleted on the phone, it still shows normally in Outlook. It does not seem to matter what I set the "remove deleted messages" setting to on the phone. I understand this is due to a combination of the phone not e...

IMAP forwarder

I'm wondering what is the quickest and most reliable way to forward mail from an IMAP account. My university does not allow our student-mailbox to forward to a private e-mail account (everybody uses either Gmail or Hotmail here). It's a political thing, not technical. We do have IMAP access to the mailbox. I would like to have a service...

Getting mail from GMail into Java application using IMAP

I want to access messages in GMail from a Java application using JavaMail and IMAP. Why am I getting a SocketTimeoutException? Here is my code: Properties props = System.getProperties(); props.setProperty("mail.imap.host", "imap.gmail.com"); props.setProperty("mail.imap.port", "993"); props.setProperty("mail.imap.connectiontimeout", "5...

IMAP in emacs rmail?

Is there an Emacs package for using rmail with an imap server? ...

IMAP4 server for .NET

Are there any free (non-GPL) libraries for .NET that provide IMAP4 server side functionality? E.g. handles the socket level and message handshaking so that an IMAP4 client (such as outlook) can retrieve, read, edit and/or delete messages. I am not trying to connect to an IMAP4 server, I'd like the assistance to implement one. ...

What do the flags in a Maildir message filename mean?

I'm cleaning up some old Maildir folders, and finding messages with names like: 1095812260.M625118P61205V0300FF04I002DC537_0.redoak.cise.ufl.edu,S=2576:2,ST They don't show up in my IMAP client, so I presume there's some semaphore indicating the message already got moved somewhere else. Is that the case, and can the files be deleted wi...

IMAP: how to move a message from one folder to another

(using the IMAP commands, not with the assistance of any other mail package) ...

IMAP: "immediate" delete, without going through Trash folder?

I currently filter some message from my inbox with these steps: select inbox pick messages set \Deleted tag and then repeat the process after selecting Trash. Is there a more direct way of disposing of these messages? Or is it just the feature of the Mail server that deleting a message puts it in the trash, and deleting from the tra...

php - imap - moving emails on antoher account

I am working on a script that downloads emails and stores them in a db, I usually receive thousands of emails on this account, once downloaded the mails are deleted. Being paranoic, I want to have at least one month backup of my emails, but I cannot clutter my main mailbox address leaving them in there. So i need to move the mails (via...

How do I perform an IMAP search in Python (using Gmail and imaplib)?

In Gmail, I have a bunch of labeled messages. I'd like to use an IMAP client to get those messages, but I'm not sure what the search incantation is. c = imaplib.IMAP4_SSL('imap.gmail.com') c.list() ('OK', [..., '(\\HasNoChildren) "/" "GM"', ...]) c.search(???) I'm not finding many examples for this sort of thing. ...

Tool to copy IMAP folders from one server to another

I need a Unix-based tool, such as a shell script or command-line program, to copy IMAP folders from one server to another. Ideally, the tool should copy all the folders for a single account (Inbox, Sent, Trash, and user-created folders) at once, rather than one folder at a time. It should preserve message dates. As an option, I'd like to...

Get UID for message from GMail using javax.mail with IMAP

I'm using javax.mail to retrieve mails from GMail using IMAP. I want to also obtain the tags being applied to each mail, so I'm iterating over all the folders in the store (which actually are tags) and downloading mails for each other. I was using the method getUID of ImapFolder to obtain the UID for each message, and then compare them ...

How to set up a bidirectionally encrypted email server?

Encrypted email - sounds like a great thing, right? Problem already solved, right? Well... I don't think so and I'm hoping I'm wrong! To understand what I'm asking, please understand what I'm NOT asking: I am not asking how I encrypt and sign messages sent over public networks. This is a bit different. I want to set up a mail server wh...

SMTP and IMAP server library for .net

Hi, does anyone know good SMTP/IMAP server libraries for C#? I only found some long abandoned projects. Only SERVER SIDE libraries, please no more posts about client libs. Thanks, Fionn ...

Fire an event when email is received

I'm trying to write something that puts the contents of the message on a queue, to have work done on it later. I've been messing around with IMAP IDLE with varying degrees of success. I was wondering if anyone knows of a method to have a mail server receive an email, and then perform an action like posting the contents of the email to a...

Properly formatted example for Python iMAP email access?

tldr: Can someone show me how to properly format this Python iMAP example so it works? from http://www.python.org/doc/2.5.2/lib/imap4-example.html " import getpass, imaplib M = imaplib.IMAP4() M.login(getpass.getuser(), getpass.getpass()) M.select() typ, data = M.search(None, 'ALL') for num in data[0].split(): typ, data = M.fetc...

Programmaticly use Gmail to receive e-mail?

I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account? EDIT: Thanks for the rapid feedback....so I have two options, POP or IMAP. Which one should I use? And why? EDIT #2: Looks ...

How do I mock an IMAP server in Python, despite extreme laziness?

I'm curious to know if there is an easy way to mock an IMAP server (a la the imaplib module) in Python, without doing a lot of work. Is there a pre-existing solution? Ideally I could connect to the existing IMAP server, do a dump, and have the mock server run off the real mailbox/email structure. Some background into the laziness: I ha...

Python imaplib Gmail authenticate failure

I just ran into an issue with Python's imaplib and Gmail's authentication mechanism: >>> import imaplib >>> imap = imaplib.IMAP4_SSL('imap.gmail.com', 993) >>> imap.authenticate('[email protected]', 'Bob Dole likes your style!') Traceback (most recent call last): ... imaplib.error: AUTHENTICATE command error: BAD ['TODO (not supported...