Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use my email from my phone and my computer via IMAP. I want to set something up so that if I delete a message via my phone, my computer will still keep the message locally.

For example, assume I leave my computer on, with a synchronize interval of 5 minutes. I want to be able to send something from my phone, wait 5 minutes to be sure my computer has downloaded the item from the Sent folder, then delete it from the IMAP sent folder via my phone, but have the computer at home keep it's copy.

Is this possible with any readily available email clients out there? I have Thunderbird and Outlook at the moment, but would be willing to learn a new interface for this feature. How can I accomplish this?

In response to RedGrittyBrick's comment:

The purpose is to maintain a complete, automatic (offline) backup of every message to pass through the account. For various reasons, certain messages may not remain on the IMAP server, but do need to be kept in offline storage.

share|improve this question
    
I'm curious, care to explain the benefit of doing this? –  RedGrittyBrick Sep 6 '12 at 20:21
    
@RedGrittyBrick ~ The purpose is to maintain a complete, automatic (offline) backup of every message to pass through the account. For various reasons, certain messages may not remain on the IMAP server, but do need to be kept in offline storage. –  user74328 Sep 8 '12 at 5:30
    
Try converting mails to mbox and store it. refer this link –  Renju Chandran chingath Sep 25 '13 at 6:06
1  
This is called POP –  pratnala Oct 25 '13 at 7:54

4 Answers 4

The questioner has broached a most important topic that I've seen little written about. To wit: How keep a permanent collection of your emails regardless of the policies and configurations of email providers.

==============

POP Protocol

The advantage of the POP protocol is its simplicity and clarity of operation. Using the POP protocol, an email client like Outlook or Thunderbird simply downloads all emails received at the server in your name and then optionally deletes at the same time, deletes them later. or doesn't at all. E.g., an email account set up in Outlook to use POP downloads all your new mail on the server mail and stores them in a PST file on your local computer. Thunderbird handles POP much the same way. You can always count on having all your mail using POP.

Not Sent From Here:

The most common shortcoming of the POP protocol is that it's a 1-way trip. Your device's email client fetches email from the server and that's it. The mail you create and send to others is sent via an outbound SMTP server which does little more than forward your email to the rest of the world. It doesn't ever access your mail box. It is your email client that stores a copy of sent emails in the SENT folder of that device, if the client options were set to do so. Since the sending email client knows nothing of your other devices and most likely cannot connect to them - let alone their email clients, your SENT emails stay on the sending machine, unbeknownst to your other clients.

============

Enter IMAP

A newer protocol called IMAP (Internet Mail Access Protocol) attempts to allow multiple devices to see the same things no matter what device you are using. When a client connects to an email account via IMAP, the client and the server communicate both ways. Like Microsoft Exchange or Lotus Notes, IMAP synchronizes the emails and folders on the client with those and the server. So, if you sent 1 message from each of 3 devices, all 3 clients would see all 3 emails in their SENT folders. Likewise for deleted emails in TRASH or saved emails in an ARCHIVE folder.

Trouble in Paradise:

The disadvantage of IMAP is that the definitions of how it works varies considerably between servers and email clients. For example, email clients using IMAP do NOT usually download and keep ALL your emails. Instead, an IMAP server is meant to be the holder of your emails. Your IMAP email clients only synchronize a configured number of emails, not generally everything.

The rules are also muddy as to what your clients will see and how much (and for how long) the server will keep your mail. This is a showstopper for professionals where most emails must ALWAYS be kept somewhere and you know where that. Who knows when Google, Microsoft, Yahoo, GoDaddy, 1&1, Comcast, ATT, Verizon, et al, will change their retention rules. Such tech details are seldom delineated.

What is needed is a methodology that incorporates the best of both POP and IMAP. We already have such beasts in the form of Exchange Server and also the confusing swamp known as Lotus Notes. Both will mirror (i.e., synchronize or replicate) everything on the server with your local client and vice versa.

Alas, both servers are very expensive, complex, and not for the everyday user. Outlook, though, will work with such beasts. Microsoft is now pushing Outlook.com which is a multitenant Exchange Server for the masses. Internet service providers like GoDaddy and others are now acting as 3rd parties who offer Exchange mail boxes to plebeians.

Simple but imperfect workaround:

One way to get something close to the best of both worlds is to use both protocols if your server supports both. Using POP for your Outlook or Thunderbird account on your real computers and IMAP on your cutesy PDA's. Android and Apple have multiple email clients that will handle IMAP.

In this scenario, your PC's might fetch email using POP to download and archive all your emails from the server. You also set the client to NOT delete the server mail immediately so that your devices using IMAP can still see your mail for a while. What you do is set the PC clients to "leave mail on server for x days". I set that to 90 days. That way, my PC Outlook will eventually connect to and pull the new emails then instructs the server to delete any emails older then 90 days.

This workaround still doesn't handle folders you may have created on the server. Only IMAP will fetch and replicate folders both ways. By folders, I mean TRASH, SENT, ARCHIVE, et al. Unless you are a folder freak, you probably are most concerned about the SENT folder. That is, you want all machines to see what all machines have sent out - not just from the machine in front of you.

The simplest way to replicate the SENT folder is to Blind Copy (BCC) anything you send back to yourself. This is normally done manually by you at the time you send a new email. Some clients are getting smarter about this. The excellent K9 email client for Android has a configuration option to automatically add yourself to the BCC field on all emails you send. In so doing, anything you send gets received back to you as another recipient. Since all your devices will then always get the new mail, regardless of protocol, you have effectively replicated your outbound emails with all your devices.

The BCC trick is not perfect. All email that you BBC yourself with will end up in the inboxes of all your clients - not your local SENT folder. Outlook's advanced rules mechanism can help fix that too by checking all new emails in which your address is on both the SENDTO and BCC fields.

Hopefully, IMAP will evolve to allow all the features of both POP and IMAP so that all mail is downloaded to your client, including all folders - not just the more recent emails which is how vanilla IMAP setups work today.

Hybrid Solution:

Let's say you have 2 PC's (Wintel + Apple) and 2 PDA's (Android phone and tablet).

  1. Set up PC's to fetch using POP with Outlook or Thunderbird, e.g. a. Set protocol to POP b. Set Delete Mail on Server for x days. (I use 90). c. Look for a setting that will automatically BCC you on emails you send.

  2. Set up Androids to fetch using IMAP. Since PDA's, tablets, and smartphones often have memory issues, IMAP is better as it limits what it keeps n the device.

Hope that helps a bit.

share|improve this answer

The danger of what you are trying to achieve is that if the connection from the computer to the IMAP server fails, the sent message may be lost. Also, although IMAP is supposed to work fine when accessing from different machines at the same time, some implementations don't behave well.

This said, a possible solution with Thunderbird is as follows: Set the email account to use its own folder (not Local Folders). Then set a designated folder, say saved-sent-from-imap in Local Folders. This is where the sent messages will be kept. Note that this folder is not on the IMAP server. Make sure that the IMAP Sent (whatever the actual name is) folder has "when getting new messages for this account, always check this folder" checked. Then set a filter to move all messages from the IMAP Sent folder to saved-sent-from-imap.

Edit: this way you won't have to delete the sent message from the phone; so you can't accidentally delete a message that is not moved to the local folder.

share|improve this answer
1  
I can't figure out how to add a filter that operates on anything but the Inbox. How would I set something up to copy from the Sent folder instead of Inbox? –  user74328 Dec 23 '12 at 1:01
    
It appears that something has changed in Thunderbird. You can still run the filter manually; at the bottom of the filters window choose 'Run selected filter(s) on' Sent. Not the most convenient solution, though. –  lupincho Dec 23 '12 at 17:17

As a general rule, no. The whole point of IMAP is that the server contains an authoritative copy of the mail and that if clients store any messages at all they're simply caching them for other reasons (e.g. indexing or performance).

If you want to archive your mail, your best is to find something dedicated to that mission. Tools like MailStore are designed for this.

You could probably abuse Thunderbird, Outlook, or many other clients into copying all new IMAP messages to local folders using their built-in rules/scripting/filter systems.

You could run your an IMAP server on your own PC (such as hMailServer) and then use a tool to just copy everything to it without deleting missing messages from the destination. (imapsync may do this, compiled Windows versions available here; BaGoMa or other tools may also be pressed into service for this)

share|improve this answer

I suspect a similar effect could more easily be achieved by

  1. always bcc yourself
  2. configure the phone NOT to add sent stuff to the sent folder
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.