Closed Bug 1192478 Opened 9 years ago Closed 2 years ago

Implement "Copy message ONCE" and "Clear copied-once flag" filter actions to avoid duplicate message copies when filter has `Copy message to [folder]` action together with `Manually run` and is run multiple times

Categories

(Thunderbird :: Filters, enhancement)

38 Branch
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 297852

People

(Reporter: uhl-lu, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [wontfix per comment 16])

Attachments

(1 file)

Attached image Bug Mozilla.bmp
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150630154324

Steps to reproduce:

Im thunderbird wurde Filterfunktion eingestellt . Haken bei "FILTERN ANWENDEN BEI" "MANULLEM AUSFÜHREN " unter "AUSZUFÜHRENDE AKTIONEN" wurde "KOPIERE NACHRICHT IN:" ausgewählt . Ich möchte die Nachrichten nicht vom Posteingang verschieben , sondern nur kopieren !


Actual results:

Dies hat zur Folge das alle Nachrichten bei jeder Ausführung der Filterung nochmals in den Ordner kopiert werden ; Weil die Nachrichten nicht aus dem Ordner Posteingang gelöscht oder als bereits kopiert markiert werden . Dadurch sind die Nachrichten mehrmals , je nach Häufigkeit der Ausführung der Filterfunktion , in den Ordnern als KOPIE vorhanden . siehe Datei im Anhang - 3 x mail "Zahlungsavise"


Expected results:

Funktion ändern auf ODER hinzufügen der Funktion "EINMALIG kopieren der Nachricht in:" . 
Ich kann den Sinn des mehrmaligen kopierens nicht erkennen !
Very short translation:
The filter action "copy message" isn't useful together with the "manually run" option because you always get a new copied message each time you run the filter.

My answer is that this is in fact not useful if you use both options together. To make this work you would have to store something in the message status that this message has been already copied and i doubt that someone will do this work.

in german:
Es ist richtig das die Nachricht kopierfunktion bei den Filtern zusammen mit dem manuellen ausführen keinen Sinn ergibt. Das liese sich nur ändern wenn man zu jeder Nachricht die kopiert wurde einen "schon kopiert" Status hinzufügt. Ich bezweifele aber das jemand soetwas implementiert.
Summary: Thundebird - Filter Kopierfunktion fehlerhaft - nicht sinnvoll → Filter copy action together with manual run option isn't working well
Du kannst den "schon kopiert" status mit einem Tag implementieren (z.B. "Kopiert"). Der Filter wird den Tag auf kopierte Nachrichten beibringen. Und der Filter Kriterien sollten eine "Tags, nicht beinhaltet, 'Kopiert'" Regel haben.
Danke für die Antwort , aber ich bin kein Programmierer . Wo kann ich den Tag setzen ? In den Filter Einstellungen habe ich nichts gefunden .
Du must zuerst den Tag "erfinden" im Options->Display->Tags. Clicke "Add" und gebe dem Tag einen Namen. Dann im Einstellungen des Filters gibts du den Regel und auch eine Aktion ("Add Tag").
Aryx, if you use the German version of Thunderbird, please add the german labels of the buttons if needed. Thanks.
Flags: needinfo?(aryx.bugmail)
Danke für die Antwort . Die Idee ist gut und funktioniert , aber sobald ich mehrere Bedingungen im Filter habe und ich "mindestens eine Bedingung" auswähle funtkioniert es nicht mehr .
Hast du dafür auch eine Idee ?
Ja, das funktioniert nur mit "Alle Bedingungen erfüllen", ansonsten muss man das auf mehrere Filter aufteilen.
1. Einstellungen öffnen.
2. Ansicht > Schlagwörter > Hinzufügen > "kopiert" eingeben und speichern.
3. Filter öffnen > Neu
4. "Alle Bedingungen erfüllen" auswählen.
5. Erste Bedingung: "Schlagwörter" + "enthält nicht" + "kopiert"
6. Zweite Bedingung: Die ursprüngliche Regel, nach der die zu kopierenden Dateien ausgewählt werden.
7. Erste Aktion: "Schlagwort hinzufügen:" + "kopiert"
8. Zweite Aktion: "Kopieren der Nachricht in" + gewünschter Zielordner

aceman, in my opinion this should be wontfixed. Hidden flags which prevent copying cause unexpected behavior.
Flags: needinfo?(aryx.bugmail)
Danke - das habe ich selbst geschafft .
Nächste Frage : Ist es möglich in der 3.Spalte (unter "keine Bedingungen" ) mehrere Wörter anzugeben ? Ähnlich wie html ? Also zum Beispiel will ich alle Nachrichten verschieben welche die Wörter  "Müller" und "Meier" enthalten ?
MfG
Keine Bedingungen bedeutet, dass die Aktionen des Filters auf jede E-Mail/jeden RSS-Eintrag/jedes Newsgroup-Posting angewandt wird, dass durch diesen Filter läuft.
Blocks: TV_Gecko_P2
:josh did you really mean to set this blocking bug 1214245? If so, what is "TV P2 platform"?
Flags: needinfo?(jocheng)
(In reply to Kent James (:rkent) from comment #10)
> :josh did you really mean to set this blocking bug 1214245? If so, what is
> "TV P2 platform"?

Wrong bug number I guess, removing the dependency.
No longer blocks: TV_Gecko_P2
Flags: needinfo?(jocheng)
(In reply to Sebastian Hengst [:aryx][:archaeopteryx] (needinfo on intermittent or backout) from comment #7)
> ...
> aceman, in my opinion this should be wontfixed. Hidden flags which prevent
> copying cause unexpected behavior.

Aceman, what do you think?   (There doesn't seem to be an alternative)
Flags: needinfo?(acelists)
Yes it becomes complicated here. Some users may want to always get a new copy of the msgs when the filter is manually run. E.g. myself included, for Tb development and testing, where after a copy into another folder, the copies (or whole folder) are deleted and I want new ones.

Yes, in production profile only one copy may be the saner expected result.
So this would need a new action as proposed in comment 0: "copy message ONCE to:" and the status that a message was already copied would need to be stored somewhere. Best in X-Mozilla-Status headers.
Then if this flag gets set for a message and the copy is lost and the user wants to copy it again, how does he clear the flag? Do we invent another filter action or a message operation "clear copied-once flag" ?

As said in comment 6, the solution using tags does not work when you have multiple rules and you need to make the filter rules e.g. as:
(Tags, does not contain, Copied) AND ((Subject, contains, spam) OR (Subject, contains, lottery))

This would need regular expressions in filters. Which we have, but there is no UI. This would be solved by bug 297852.
Flags: needinfo?(acelists)

OK. Let's get this off unconfirmed

Status: UNCONFIRMED → NEW
Depends on: 297852
Ever confirmed: true

Thomas can you reproduce this?

Flags: needinfo?(bugzilla2007)

(In reply to Wayne Mery (:wsmwk) from comment #15)

Thomas can you reproduce this?

It's not a bug. Filter does exactly as told, to copy message when criteria are matching. So running that manually and repeatedly will obviously create multiple copies. Which for production profiles may not be very useful - hence this RFE.

  • This doesn't reproduce for me on when the copy target was Gmail/Templates on 102.2.1 (64-bit), Win10 (I guess Google refuses to create duplicates).

  • But it does reproduce for copy target Local Folders/test, so essentially it does happen.

  • If filter dialog isn't closed and Run now clicked several times from the open dialog, the status bar counter starts lying that more and more messages get copied (adds number of matching messages each time): Copied 3 [6/9/12] messages from Inbox to Templates. So there's a bug in the counter (needs a new bug).

Given the very low interest, no duplicates, no votes, and the somewhat edge case nature of this, I doubt that we'd want to invest resources here. Instead, we should enable users to create the desired filter themselves using the custom tag solution even when they have multiple filter criteria. So imo this is wontfix and then becomes a duplicate of bug 297852 (see Aceman's comment 13), where resources would be much better placed.

Sadly, we also do not have a filter action "Remove tag" (nor "Remove star"), which would obviously make sense for rule-based tag/star management (needs a new RFE if we don't have one).

Severity: normal → --
Status: NEW → RESOLVED
Type: defect → enhancement
Closed: 2 years ago
Flags: needinfo?(bugzilla2007)
Resolution: --- → DUPLICATE
Summary: Filter copy action together with manual run option isn't working well → Implement "Copy message ONCE" and "Clear copied-once flag" filter actions to avoid duplicate message copies when filter has `Copy message to [folder]` action together with `Manually run` and is run multiple times
Whiteboard: [wontfix per comment 16]

The Filtaquilla addon provides the "Remove tag" feature and many more filter actions.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: