Thunderbird - Do not delete local copies of IMAP messages

71

I don't know if it's possible within the IMAP folders, but you could create a Message Filter in Thunderbird that copied new messages from the IMAP folder to a folder in Local Folders:

First, create a folder in Local Folders to keep the messages in

From the IMAP inbox,
go to Tools / Message Filters
click New
give the filter a name
click Match All Messages
in Perform these actions select Copy Message To and then select the folder you created in Local Folders
click Ok

It should run automatically for all new messages, and you can run it manually by clicking Run Now in the Message Filters box, or from Tools / Run Filters on Folder

Share:
71

Related videos on Youtube

aejhyun
Author by

aejhyun

Updated on September 18, 2022

Comments

  • aejhyun
    aejhyun almost 2 years

    I want to be able to compare values from the [String] level instead of the String level. Here's what I mean:

    var connectedNames:[[[String]]] = [[[]]]
    
    for var row: Int = 0; row < connectedNames[0].count; row++ {
        if self.connectedNames[0][row] as! String == "asdf" {
    
        }
    }
    

    But the cast here from [String] to String fails so I can't make this value comparison.

    So the main problem is this: Is there anyway to compare the String value of a [[String]] to a String? In other words, the String value that I get from indexing connectedNames like so connectedNames[0][0] == "Some String"?

    • Nicolas Miari
      Nicolas Miari about 8 years
      Just a suggestion: Perhaps instead of nesting arrays so many levels, you could define a class or struct that does what you are looking to achieve, complete with a method that performs the comparison you're after, get it working, and forget about the implementation details. Your future self will thank you down the line.
    • aejhyun
      aejhyun about 8 years
      @NicolasMiari Thank you for your suggestion. But I am so noob that I don't really know how to use classes and structures effectively. So I have a vague understanding of you meaning. I hope one day, I'll get to see how to use them correctly in other people's code!
  • karatedog
    karatedog over 12 years
    Exactly what I do with TB. All incoming mail is put to a local folder (specific folders on other rules, common folder for the rest).
  • Randy Orrison
    Randy Orrison over 12 years
    It didn't when I just tested it... I sent email from an IMAP account in Thunderbird; it went to the sent folder in IMAP, but wasn't copied to my local folders. When I replied to it, the incoming reply was copied. About the same time I received an email that was filtered by the server into a different folder, and that didn't get copied by the rule. It sure looks like it's only picking up messages delivered to the Inbox - though if that isn't the behavior you want, I can't see a way to change it. (Thunderbird 8.0 on Windows)
  • boidkan
    boidkan about 8 years
    The triple '===' is to compare of that are the exact same object not if their value is the same
  • aejhyun
    aejhyun about 8 years
    Thank you @ChristopherHarris for your answer! I truly appreciate your help. I am trying to understand it right now. One thing though, why do you have the guard? Is that necessary? Or is it just safer coding?
  • Christopher Harris
    Christopher Harris about 8 years
    Better coding. Swift prefers guard over nested conditionals for readability. Please accept this answer too, thanks!
  • Chris Ledet
    Chris Ledet almost 3 years
    Worked like a charm still. Thank you! :D