Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Automatically copy from IMAP/Inbox to Local/Inbox and from IMAP/Sent to Local/Sent

I have three IMAP accounts, which I access from different locations, different computers, and different email programs. And also by webmail.

I want Thunderbird to:

1) Automatically copy all incoming messages from my IMAP inboxes to the local inbox.
2) Automatically copy all outgoing messages from my IMAP sent folders to my local sent folder.

This picture shows what I want:


I've made a filter to copy messages to my inbox. Unfortunately the filter lacks the option "all incoming messages."


(missing features: "copy from IMAP inbox to local inbox"; "copy from IMAP sent folder to local sent folder")

The built-in option to copy outgoing messages to the local sent folder doesn't cut it, because it won't touch outgoing messages that I send from other email apps. I need an option along the lines of "copy ALL messages from IMAP/sent to local/sent."

Is there a way to teach the filter the difference between incoming messages and outgoing messages, and have them all copied to the appropriate folder?

I want some messages on my computer and online, and others on my computer but not online. So the "select this folder for offline use" setting doesn't work. It deletes messages that shouldn't be deleted and syncs deleted messages back to the server that should not be synced back.

The "unified mailboxes" view doesn't cut it either. When a message sits in an IMAP box and in a local mailbox it shows up twice in the unified box, and there's no option to hide the duplicates.

Question: what's the easiest way to have my messages copies automatically along the lines of the picture above?
2 people have
this question
+1
Reply
  • You want the filters to operate server side; TBs filters generally only deal with what it sees arriving in the inbox. I copy messages to Local Folders, and then need to run filters manually to sort them into sub-folders. There is an add-on to make filters operate on the Sent folder:

    http://www.xzer.net/harvest/sendfilter

    which might be of use to you.

    To preserve messages independently of the imap server, you need to move or copy them to a location outside the IMAP folder system. This is one of the intended uses of Local Folders: http://kb.mozillazine.org/Local_Folders

    "Select this folder for offline use" is provided simply to make a local temporary copy for when you are offline; it will synch and update the local copy to match the server (and vice versa) at the next opportunity.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Thanx Xenos, but...

    Running filters server-side is pointless, because for obvious reasons a server can't copy mail to my local mailboxes.

    Filtering incoming messages is no problem. It's a simple matter of:

    IF "status=new" THEN "copy to local/inbox"

    which Thunderbird can handle.

    But filtering outgoing messages doesn't work. Not even with Send Filter.

    The problem is that the Send Filter add-on does more than copying. It also moves sent messages out of the IMAP/sent folder. It has to, because otherwise it will copy the same messages over and over again: Send Filter is unable to tell the difference between old and new messages.
    But moving mails out of the IMAP/Sent folder means that they are no longer available for another copy of Send Filter on another computer. When Send Filter is done copying messages on my work computer it won't do it again on my home computer.

    The next version of Thunderbird should get a better filter system, in which you can set a location-based action for new messages in any folder, not just the inbox.

    A filter like:

    IF "location=IMAP/Sent" AND "message=new" THEN "copy to local/inbox"

    would do the job.

    While the Thunderbirds are working on a solution, might there be a workaround that works?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Found another problem.

    Using a filter to auto-copy mails from IMAP/in to local/in only works if I haven't read the mail before on another computer.

    If I check my mail on my phone first, and on my computer with Thunderbird later, Thunderbird shows the mails in IMAP/in but does not copy them to local/in.

    Is there a way to fix this?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited