WebApp Rule for specific folder to move messages into another
-
Hi there
I am struggling and looking for a solution. I have made several rules, according to which new messages are automativally moved into specific folders upon arrival (based on specific words in the message’s content). This has worked perfectly fine for me in the last couple of months. Now I want to “sort out” (move) certain e-mails from one folder into another >>> after they have been automatically put into this folder I want to sort again.I need a rule only for this specific folder in which I can define, “If Folder XY has messages in it with the Word “ABC” or “DEF”, please move it into Folder YZ”.
Can anybody help with this? It would be much easier for me to have only one new rule for this particular folder, rather than changing all my “inbox rules” to sort it already there.
thank you very much!
foxo90 -
Hi @Foxo90,
@foxo90 said in WebApp Rule for specific folder to move messages into another:
Now I want to “sort out” (move) certain e-mails from one folder into another
this is unfortunately not possible as rules only get processed when a message is initially delivered into a mailbox.
-
@fbartels Thank you very much for your answer. and there will be no other solution like with a plugin or something else? Just asking, because I have no clue about programming and stuff… :-)
-
Hi @foxo90,
part of the challenge is that the code that evaluates rules is only part of the delivery component of Kopano and therefore cannot be interfaced with by other components. So one would need to reimplement the whole engine in e.g. php to make it usable from WebApp directly.
We actually had a prototype at some point for a daemon with a RestAPI that could take care of this. But it never progressed further.
If you would be a programmer, the easiest route for you would be to use python-kopano to connect to your mailbox directly. From there on you could use python to filter your mails and move them accordingly. I am not aware of an example here however.