Cecil Westerhof <ce...@decebal.nl> writes: > The documentation says: > -L learn type, --learntype=type > Send message to spamd for learning. The "learn type" can be > either spam, ham or forget. The exitcode for spamc will be set > to 5 if the message was learned, or 6 if it was already learned. > > Note that the "spamd" must run with the "--allow-tell" option for > this to work. > > But when I run spamc -L I get a return code 0 back. I am working with: > SpamAssassin Client version 3.2.5 > > Also is it possible to do not have output? At hte moment I get: > (Message was already un/learned)
I now have also use not already processed spam. This also has an exit code of 0 and gives as message: Message successfully un/learned -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof