This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Copy new mail from Gmail to a Thunderbird local folder -- and mark as read ONLY on the Gmail server

  • 15 replies
  • 2 have this problem
  • 7 views
  • Last reply by David.P

more options

Hi forum,

for a long time I have tried to set up a filter that copies new mail from the Gmail inbox to a local mail folder in Thunderbird, and that additionally sets the read/unread status correctly on both ends.

However, no matter what I try, it doesn't work.

There seems to be no way to set the read status on the IMAP server to "read" after the copy action, and at the same time keep the status "unread" for the mails that have been copied to the local Thunderbird folder.

It does not even work if I set up a intermediate folder on the IMAP server where new mail first gets moved to, and only then gets copied to the Thunderbird local folder afterwards.

I have also tried all kinds of combinations with the "Move Later" and other actions by FiltaQuilla.

I am really at a loss. Am I the only one who wants to copy mail from Gmail to a local Thunderbird folder and get the proper unread/read status on the server as well as in Thunderbird?

Thanks heaps for help,

Cheers David.P

Hi forum, for a long time I have tried to set up a filter that copies new mail from the Gmail inbox to a local mail folder in Thunderbird, and that additionally sets the read/unread status correctly on both ends. However, no matter what I try, it doesn't work. There seems to be no way to set the read status on the IMAP server to "read" after the copy action, and at the same time keep the status "unread" for the mails that have been copied to the local Thunderbird folder. It does not even work if I set up a intermediate folder on the IMAP server where new mail first gets moved to, and only then gets copied to the Thunderbird local folder afterwards. I have also tried all kinds of combinations with the "Move Later" and other actions by FiltaQuilla. I am really at a loss. Am I the only one who wants to copy mail from Gmail to a local Thunderbird folder and get the proper unread/read status on the server as well as in Thunderbird? Thanks heaps for help, Cheers David.P

Chosen solution

Why is it that every time I ask on any TB support forum I end up explaining stuff instead of getting an answer?

I need mail to stay on the server even if I delete it locally. Which part of this is not understandable?

Anyway, don't bother. I fixed it myself in the meantime by setting up the Gmail account anew in Thunderbird.

See also: http://forums.mozillazine.org/viewtopic.php?f=31&t=2877149

Read this answer in context 👍 1

All Replies (15)

more options

Am I the only one who wants to copy mail from Gmail to a local Thunderbird folder

Probably. With IMAP all mail is managed on the server. If you want all your mail local, why do you use IMAP in the first place?

more options

No. I want it ALL on the server, and only very little of it local.

more options

There seems to be no way to set the read status on the IMAP server to "read" after the copy action

You can add a filter action 'mark as read' prior to copying the message.

more options

But this marks the message as read also in Thunderbird.

more options

I don't think I understand your motivation to do things as described. It doesn't sound logic to me. Perhaps you can provide some more context for what you're trying to achieve.

more options

I need a local copy of my work mail -- of which a large part also gets deleted locally, but must stay available on the IMAP server.

more options

OK can I solve this like so:

  1. Create a Label on Gmail for "Work" mail and a Gmail filter that moves incoming "Work" mail to this label
  2. Configure the Thunderbird folder associated with the Gmail "Work" label for Offline Reading
  3. Setup the Gmail account in Thunderbird for "When deleting a message, move it to "All Mail" in Gmail (i.e. only remove the label "Work" from the respective mail but don't actually delete it)

What do you think?

Modified by David.P

more options

I still don't feel like I understand your environment and why you want to do things like that. I have no intention to speculate. If the above works for you - that's fine.

Setup the Gmail account in Thunderbird for "When deleting a message, move it to "All Mail" in Gmail

I thought this is what Gmail does in the first place. https://support.google.com/mail/answer/78755

more options

> I thought this is what Gmail does in the first place.

Yes, this is what Google says but it is not true for Thunderbird -- even when you follow Google's configuration instructions for Thunderbird.

Again, I needed a folder containing "Work" mail in Thunderbird which must be available offline (inter alia for reasons of speed).

Additionally, this folder contains only a certain important subset of all mail that is generally "Work" related. For example, online shop shipping notifications etc. also go into this folder, but usually get deleted from this folder as soon as they have been read.

However, mail that is deleted locally from this Thunderbird "Work" folder must remain on the IMAP server online, and not get deleted from there.

Can this be done with my above approach, or is there a better idea?

Thanks

Modified by David.P

more options

Based on the above information, this is what I'd do. Whether that fits with what you have in mind, I have no idea.

  • create a label 'work' in Gmail
  • subscribe to the folder 'work' in Thunderbird
  • turn on offline use for 'work' in Thunderbird
  • filter 'certain important subset of all mail' to the 'work' label/folder
more options

I have set it up all now like this.

However, the: "Setup the Gmail account in Thunderbird for "When I Delete a Message" -> "Move it to this Folder: All Mail in Gmail"

...part does not work! If I delete a message in the IMAP folder "Work" in Thunderbird, it gets DELETED from the IMAP server (i.e. gets moved to the IMAP trash), instead of getting moved to the "All Mail" folder/label.

What is wrong here?

more options

I don't understand what you're trying to achieve with moving to 'All Mail'.

more options

As I said: When deleting mail from the "Work" folder in Thunderbird, that mail must not be deleted from the IMAP server (i.e. moved to the IMAP trash).

Rather, only the label "Work" must be removed from the mail, like set up in the Thunderbird settings:

http://i.imgur.com/vZoRHga.png

However, this setting gets ignored.

Why?

Modified by David.P

more options

I don't think this is going to work. And it doesn't make any sense to me. Good luck.

more options

Chosen Solution

Why is it that every time I ask on any TB support forum I end up explaining stuff instead of getting an answer?

I need mail to stay on the server even if I delete it locally. Which part of this is not understandable?

Anyway, don't bother. I fixed it myself in the meantime by setting up the Gmail account anew in Thunderbird.

See also: http://forums.mozillazine.org/viewtopic.php?f=31&t=2877149

Modified by David.P