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

Why do I get my mails twice when I move them to localfolders with a filter?

more options

I use a filter to move all emails from an IMAP inbox to local folders, but for some awkward reason I get the mail twice.

These are the filters: version="9" logging="yes" name="Verzonden_typeapp" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Verzonden%20Typeapp" action="Stop execution" condition="AND (body,contains,Verzonden door TypeApp)" name="Linkedin" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/LinkedIn" condition="AND (all addresses,contains,linkedin)" name="Test Aankoop" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/Test%20Aankoop" condition="AND (all addresses,contains,test-a)" name="POM" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/POM" condition="AND (all addresses,contains,pom.be)" name="Carrefour" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Carrefour" condition="AND (all addresses,contains,carrefour)" name="Stumble" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Stumble%20Upon" condition="AND (all addresses,contains,stumble)" name="Time to Momo" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Time%20to%20Momo" condition="AND (all addresses,contains,timetomomo)" name="Travelbird" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/Travelbird" condition="AND (all addresses,contains,travelbird)" name="SE" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/SE" condition="AND (all addresses,contains,secretescapes)" name="Tripadvisor" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Tripadvisor" condition="AND (all addresses,contains,tripadvisor)" name="Booking" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Booking" condition="AND (all addresses,contains,booking)" name="Orange" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Orange" condition="AND (all addresses,contains,orange.be)" name="Twitter" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Twitter" condition="AND (all addresses,contains,twitter)" name="Smartschool" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Smartschool" condition="AND (all addresses,contains,smartschoolmail.be)" name="YT" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/YT" condition="AND (from,contains,youtube)" name="StalHop" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Stalhop" action="Stop execution" condition="AND (all addresses,contains,stalhop.be)" name="Paypal" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,paypal)" name="Octaplus" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,octaplus)" name="ZoomIt" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,zoomit)" name="SR" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Sportraad" action="Stop execution" condition="AND (all addresses,contains,sint-genesius-rode.be)" name="Serge" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Serge" action="Stop execution" condition="AND (from,contains,exa491@hotmail.com)" name="DonBosco" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/DonBosco" action="Stop execution" condition="AND (from,contains,school032607@informatsoftware.be)" name="Mobile Vikings" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/MV" action="Stop execution" condition="AND (from,contains,mobilevikings)" name="JuJitsu" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/JuJitsu" action="Stop execution" condition="OR (from,contains,yolelias@voo.be) OR (from,contains,cesarts-organisation@voo.be)" name="test" enabled="yes" type="17" action="Copy to folder" actionValue="mailbox://nobody@Local%20Folders/Inbox" action="Delete" condition="ALL" name="Rest gaat naar Marc" enabled="no" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc" action="Stop execution" condition="ALL"

and this is the filter log:

[19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:49:50 bericht-id = 20180119104950.3427.76684@support1.webapp.phx1.mozilla.com verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:49:50 uitvoering stopgezet

[19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet

[19/01/2018 11:52:06] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:51:55 bericht-id = 20180119105155.2981.4852@support1.webapp.phx1.mozilla.com verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 11:52:06] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:51:55 uitvoering stopgezet

[19/01/2018 11:52:07] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 11:52:07] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet

[19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - PW op 19/01/2018 11:53:56 bericht-id = bf4a9fd1-54af-023d-05fb-a68065e842ee@skynet.be verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - PW op 19/01/2018 11:53:56 uitvoering stopgezet

[19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc

[19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet

Note the date in the second occurance: 1/01/1970 and the absence of a title, sender, etc..

I use a filter to move all emails from an IMAP inbox to local folders, but for some awkward reason I get the mail twice. These are the filters: version="9" logging="yes" name="Verzonden_typeapp" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Verzonden%20Typeapp" action="Stop execution" condition="AND (body,contains,Verzonden door TypeApp)" name="Linkedin" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/LinkedIn" condition="AND (all addresses,contains,linkedin)" name="Test Aankoop" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/Test%20Aankoop" condition="AND (all addresses,contains,test-a)" name="POM" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/POM" condition="AND (all addresses,contains,pom.be)" name="Carrefour" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Carrefour" condition="AND (all addresses,contains,carrefour)" name="Stumble" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Stumble%20Upon" condition="AND (all addresses,contains,stumble)" name="Time to Momo" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Time%20to%20Momo" condition="AND (all addresses,contains,timetomomo)" name="Travelbird" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/Travelbird" condition="AND (all addresses,contains,travelbird)" name="SE" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/SE" condition="AND (all addresses,contains,secretescapes)" name="Tripadvisor" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Tripadvisor" condition="AND (all addresses,contains,tripadvisor)" name="Booking" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Booking" condition="AND (all addresses,contains,booking)" name="Orange" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Orange" condition="AND (all addresses,contains,orange.be)" name="Twitter" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Twitter" condition="AND (all addresses,contains,twitter)" name="Smartschool" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Smartschool" condition="AND (all addresses,contains,smartschoolmail.be)" name="YT" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/YT" condition="AND (from,contains,youtube)" name="StalHop" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Stalhop" action="Stop execution" condition="AND (all addresses,contains,stalhop.be)" name="Paypal" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,paypal)" name="Octaplus" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,octaplus)" name="ZoomIt" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Zoomit%20%20%26%20Fakturen" action="Stop execution" condition="AND (all addresses,contains,zoomit)" name="SR" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Sportraad" action="Stop execution" condition="AND (all addresses,contains,sint-genesius-rode.be)" name="Serge" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/Serge" action="Stop execution" condition="AND (from,contains,exa491@hotmail.com)" name="DonBosco" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/DonBosco" action="Stop execution" condition="AND (from,contains,school032607@informatsoftware.be)" name="Mobile Vikings" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Trash/MV" action="Stop execution" condition="AND (from,contains,mobilevikings)" name="JuJitsu" enabled="yes" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc/JuJitsu" action="Stop execution" condition="OR (from,contains,yolelias@voo.be) OR (from,contains,cesarts-organisation@voo.be)" name="test" enabled="yes" type="17" action="Copy to folder" actionValue="mailbox://nobody@Local%20Folders/Inbox" action="Delete" condition="ALL" name="Rest gaat naar Marc" enabled="no" type="17" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc" action="Stop execution" condition="ALL" and this is the filter log: [19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:49:50 bericht-id = 20180119104950.3427.76684@support1.webapp.phx1.mozilla.com verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:49:50 uitvoering stopgezet [19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 11:50:15] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet [19/01/2018 11:52:06] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:51:55 bericht-id = 20180119105155.2981.4852@support1.webapp.phx1.mozilla.com verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 11:52:06] Filter ‘Rest gaat naar Marc’ toegepast op bericht van notifications@support.mozilla.org - Password reset on support.mozilla.org op 19/01/2018 11:51:55 uitvoering stopgezet [19/01/2018 11:52:07] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 11:52:07] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet [19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - PW op 19/01/2018 11:53:56 bericht-id = bf4a9fd1-54af-023d-05fb-a68065e842ee@skynet.be verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - PW op 19/01/2018 11:53:56 uitvoering stopgezet [19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 bericht-id = verplaatst naar mailbox://nobody@Local%20Folders/Marc [19/01/2018 12:55:59] Filter ‘Rest gaat naar Marc’ toegepast op bericht van - op 1/01/1970 1:00:00 uitvoering stopgezet Note the date in the second occurance: 1/01/1970 and the absence of a title, sender, etc..

All Replies (4)

more options

I guess it is a timing issue. Change the filter to "after junk classification" and see if that changes the result as it forces filter execution to await the complete download of the message.

more options

Change the filter and now instead of having 2 copies, the mail just stays in my IMAP inbox although the filter log says it has been moved:

[22/01/2018 9:17:33] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - test move to Marc op 22/01/2018 9:12:56 bericht-id = c7ce81ad-401d-2a39-bcb8-4cd62643a766@skynet.be verplaatst naar mailbox://nobody@Local%20Folders/Marc

[22/01/2018 9:20:00] Filter ‘Rest gaat naar Marc’ toegepast op bericht van Marc Massart <marc.mm.massart@skynet.be> - Fwd: test move to Marc op 22/01/2018 9:17:20 bericht-id = 1a3bec58-f037-998c-7214-1b80ebeb3e2e@skynet.be verplaatst naar mailbox://nobody@Local%20Folders/Marc

Filters: name="Rest gaat naar Marc" enabled="yes" type="48" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Marc" action="Stop execution" condition="ALL"

And I missing something obvious?

more options

I would start with removing the stop. A move forces the filter to stop because it is no longer there.

more options

I've circumvented the problem by copying the mail first to the local folder and then remove the mail from the IMAP inbox and that seems to work.

I'll investigate further.