Historique de la page
...
- subjectStartsWithSpamFilter, which considers an email as spam if it the subject starts with a given string
- subjectContainsSpamFilter, which considers an email as spam if it the subject contains a given string
In order to consider as spam all the messages starting with *\[SPAM\]* and delete them, set the following properties:Balise Wiki
| Bloc de code |
|---|
feed.imap.spamFilterBean=subjectStartsWithSpamFilter feed.imap.spamFilterPattern=[SPAM] feed.imap.deleteSpam=true |
...
| Astuce |
|---|
Remember to allow the automatic recovering of the configuration file /properties/feed/feed.xml when upgrading (see Conservation des personnalisations lors des mises à jour Recovering previous configuration and customizations when upgrading). |
Adding a new filter
Write a new class implementing the interface org.esupportail.helpdesk.services.feed.imap.SpamFilter and declare a bean of this class in /properties/domain/feed.xml.
| Astuce |
|---|
Remember to allow the automatic recovering of the new class and the configuration file /properties/feed/feed.xml when upgrading (see Conservation des personnalisations lors des mises à jour Recovering previous configuration and customizations when upgrading). |
Reading several IMAP accounts
...
| Astuce |
|---|
Remember to allow the automatic recovering of the configuration file /properties/feed/feed.xml when upgrading (see Conservation des personnalisations lors des mises à jour Recovering previous configuration and customizations when upgrading). |
Other feed modes
IMAP account readers provided by default are of class org.esupportail.helpdesk.services.feed.imap.ImapAccountReaderImpl.
...
- write a new class implementing the interface org.esupportail.helpdesk.services.feed.AccountReader
- declare a bean of this class in the configuration file /properties/domain/feed.xml
- Allow the automatic recovering of the new class and the configuration file /properties/feed/feed.xml when upgrading (see Conservation des personnalisations lors des mises à jour Recovering previous configuration and customizations when upgrading).
See also: Utilisation du Using the web service