> On 03 Sep 2014, at 02:05 , Matus UHLAR - fantomas 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 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 ti
On 31 Aug 2014, at 18:16 , Ian Zimmerman 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.
--
"There w
On Sun, 31 Aug 2014 17:37:50 -0600,
LuKreme 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 concise :-)
> sa
On 31 Aug 2014, at 14:46 , Ian Zimmerman wrote:
> On Sat, 30 Aug 2014 19:59:53 -0600,
> LuKreme 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,
On Sat, 30 Aug 2014 19:59:53 -0600,
LuKreme 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, if I
LuKreme>
> On 30 Aug 2014, at 15:32 , RW 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 spam was moved
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. Wh
On 30 Aug 2014, at 07:49 , LuKreme 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 morning.
It wor
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 day
10 matches
Mail list logo