Author Topic: markasjunk2, execute command when moving messages to spam/inbox folders  (Read 3542 times)

Offline twisterbr

  • Jr. Member
  • **
  • Posts: 26
Is there a way to trigger the spam and ham commands of markasjunk2 plugin also when moving messages to spam or inbox folders?
I mean, this has to be set on roundcube 'core' or can be done directly on markasjunk?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
i think that should be possible you just need to use the JS events for message moving to call the markasjunk2 functions.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline twisterbr

  • Jr. Member
  • **
  • Posts: 26
Thanks for the suggestion!!!

I have no idea how to do that, but i'll see in the code to learn how to make it work.

Thanks man