On Sat, 30 Aug 2014 08:23:02 -0600
LuKreme wrote:
if test -d $J_PATH; then
MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot`
On 30.08.14 22:32, RW wrote:
mtime may not be the best choice. Ideally what you want is the the time
since the spam was moved to Junk, rather than the
On 03 Sep 2014, at 02:05 , Matus UHLAR - fantomas uh...@fantomas.sk wrote:
On Sat, 30 Aug 2014 08:23:02 -0600
LuKreme wrote:
if test -d $J_PATH; then
MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot`
On 30.08.14 22:32, RW wrote:
mtime may not be the best choice. Ideally
On 31 Aug 2014, at 18:16 , Ian Zimmerman i...@buug.org wrote:
find /home/${i}/Maildir/.notspam -type f -mtime -7 | xargs -r sa-learn --ham
-u ${i}
Right. Doh. I got so held up in running find under sa-learn...
Well, that does make thins a lot easier, doesn't it.
Thanks for your patience
On Sat, 30 Aug 2014 19:59:53 -0600,
LuKreme krem...@kreme.com wrote:
RW This may run into shell argument limits if you have to learn a lot
RW of spam. Consider piping the output of find to xargs, or using -exec
RW ...{} + in find.
LuKreme Yes, I tried to do that, but as I said in my first post,
On 31 Aug 2014, at 14:46 , Ian Zimmerman i...@buug.org wrote:
On Sat, 30 Aug 2014 19:59:53 -0600,
LuKreme krem...@kreme.com wrote:
RW This may run into shell argument limits if you have to learn a lot
RW of spam. Consider piping the output of find to xargs, or using -exec
RW ...{} + in
On Sun, 31 Aug 2014 17:37:50 -0600,
LuKreme krem...@kreme.com wrote:
Ian xargs (the GNU one at least) has an option to not run the inferior
Ian when there are no args to give it.
LuKreme The interior is the find:
_Inferior_ which is GNU speak for subprocess. I should have tried to
be less
The following command seems to get stuck if there is no result from the find.
Any suggestions on how to avoid passing an empty find result to spamd?
sa-learn --ham -u ${i} `find /home/${i}/Maildir/.notspam -type f -mtime -7`
(where user $i has no emails in notspam that are new in the last 7
On 30 Aug 2014, at 07:49 , LuKreme krem...@kreme.com wrote:
MYFIND= `find $H_PATH/cur -type f -mtime -7`
if [ -n $MYFIND ]; then
/usr/local/bin/sa-learn --ham -u ${i} $MYFIND
fi
Doh!
if [ -n “$MYFIND” ]; then
or
if test -n “$MYFIND”; then
Sigh. Feeling extra stupid this Saturday
On Sat, 30 Aug 2014 08:23:02 -0600
LuKreme wrote:
if test -d $J_PATH; then
MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot`
mtime may not be the best choice. Ideally what you want is the the time
since the spam was moved to Junk, rather than the time since it was
delivered. What
On 30 Aug 2014, at 15:32 , RW rwmailli...@googlemail.com wrote:
On Sat, 30 Aug 2014 08:23:02 -0600
LuKreme wrote:
if test -d $J_PATH; then
MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot`
mtime may not be the best choice. Ideally what you want is the the time
since the
10 matches
Mail list logo