Re: Getting messages from queue

2015-03-04 Thread Wietse Venema
@lbutlr: > This is what I have to clear the held message and send them to > sa-learn, in case it's useful to anyone else. > > $ cat /usr/local/bin/spamd-learn > #!/bin/bash > > SUSER="spamd" > SPAMF="${SUSER}/trained/spam" > > # search for held messages, get qid, train as spam, and save message,

Re: Getting messages from queue

2015-03-03 Thread @lbutlr
On Mar 3, 2015, at 8:55 AM, Noel Jones wrote: > On 3/3/2015 9:47 AM, LuKreme wrote: >> On Mar 3, 2015, at 08:30, Noel Jones wrote: >>> >>> To manually test a message, use something like: >>> postcat -bhq QUEUEID | spamassassin >> >> I was surprised that postcat requires a full path to the file,

Re: Getting messages from queue

2015-03-03 Thread Noel Jones
On 3/3/2015 9:47 AM, LuKreme wrote: > On Mar 3, 2015, at 08:30, Noel Jones wrote: >> >> To manually test a message, use something like: >> postcat -bhq QUEUEID | spamassassin > > I was surprised that postcat requires a full path to the file, but thanks for > the info in the "From " header. > I

Re: Getting messages from queue

2015-03-03 Thread LuKreme
On Mar 3, 2015, at 08:30, Noel Jones wrote: > > To manually test a message, use something like: > postcat -bhq QUEUEID | spamassassin I was surprised that postcat requires a full path to the file, but thanks for the info in the "From " header.

Re: Getting messages from queue

2015-03-03 Thread Noel Jones
On 3/3/2015 9:14 AM, LuKreme wrote: > When I have a message in the mailq how do I get just the message out to, for > example, feeding to SpamAssassin? With postcat -bh there is no "From " header. > > (I'm not sure if SA uses the "From " header or not) > > The "From " pseudo-header is added dur

Getting messages from queue

2015-03-03 Thread LuKreme
When I have a message in the mailq how do I get just the message out to, for example, feeding to SpamAssassin? With postcat -bh there is no "From " header. (I'm not sure if SA uses the "From " header or not) --