You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by amir reza rahbaran <am...@gmail.com> on 2009/04/21 08:03:30 UTC

sa-update

Hi,

I ran sa-update and nothing was wrong . After completing its work I run
"stat /var/lib/spamassassin/3.002004/" and show following results:

  File: `/var/lib/spamassassin/3.002004/'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 802h/2050d      Inode: 8503299     Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2009-04-21 08:08:36.000000000 +0430
Modify: 2009-04-16 08:46:46.000000000 +0430
Change: 2009-04-16 08:46:46.000000000 +0430

The first question is that why Change Date has not changed yet (Today`s
Date: 2009-04-21) ?
Second how can I get spamassassin update date ?

Thanks in advanced.

Amir

Re: sa-update

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 22.04.09 15:10, amir reza rahbaran wrote:
> hi, I want to set sa-update in a cron job. Do you know how often it takes to
> release the updates?

depends on what. Ordinary rules get updated once per few weeks/months, but
checking daily should not be a problem.

Sought rules are ~uprated every 4 hours. I don't know about other rules,
SARE rules were reported not to be updated at all for some time, checking
daily should not do any harm again imho.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton

Re: sa-update

Posted by amir reza rahbaran <am...@gmail.com>.
hi, I want to set sa-update in a cron job. Do you know how often it takes to
release the updates?

On Wed, Apr 22, 2009 at 9:54 AM, amir reza rahbaran <
amirrezarahbaran@gmail.com> wrote:

> Thank you very much Katsten :)
>
> 2009/4/21 Karsten Bräckelmann <gu...@rudersport.de>
>
>> Please keep list-posts on list, please Reply to List.
>>
>>
>> On Tue, 2009-04-21 at 19:27 +0430, amir reza rahbaran wrote:
>> > yes, you`re right and the sa-update exit with code 1 and this is the
>> > result of
>>
>> Yes, an exit code of 1 means there is no update. It does *not* indicate
>> any error.
>>
>> > update report with "/usr/bin/sa-update -D --channelfile
>> /etc/spam_channellist"
>> [ verbose debug stuff snipped ]
>> > [3449] dbg: channel: metadata version = 759778
>> > [3449] dbg: dns: 4.2.3.updates.spamassassin.org => 759778, parsed as
>> 759778
>> > [3449] dbg: channel: current version is 759778, new version is 759778,
>> skipping channel
>> > [3449] dbg: diag: updates complete, exiting with code 1
>> >
>> > what shall I do?
>> > thanks in advanced.
>>
>> Do about what?  The above clearly shows what I told you before. There is
>> no newer update, you are already up-to-date with the latest update
>> available.
>>
>> Anyway, since you asked what to do: I suggest carefully re-reading my
>> previous post and the documentation I referenced.
>>
>>  guenther
>>
>>
>> [ full-quote snipped as well ]
>>
>> --
>> char *t="\10pse\0r\0dtu\0.@ghno
>> \x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
>> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
>> c<<=1:
>> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
>> }}}
>>
>>
>

Re: sa-update

Posted by amir reza rahbaran <am...@gmail.com>.
Thank you very much Katsten :)

2009/4/21 Karsten Bräckelmann <gu...@rudersport.de>

> Please keep list-posts on list, please Reply to List.
>
> On Tue, 2009-04-21 at 19:27 +0430, amir reza rahbaran wrote:
> > yes, you`re right and the sa-update exit with code 1 and this is the
> > result of
>
> Yes, an exit code of 1 means there is no update. It does *not* indicate
> any error.
>
> > update report with "/usr/bin/sa-update -D --channelfile
> /etc/spam_channellist"
> [ verbose debug stuff snipped ]
> > [3449] dbg: channel: metadata version = 759778
> > [3449] dbg: dns: 4.2.3.updates.spamassassin.org => 759778, parsed as
> 759778
> > [3449] dbg: channel: current version is 759778, new version is 759778,
> skipping channel
> > [3449] dbg: diag: updates complete, exiting with code 1
> >
> > what shall I do?
> > thanks in advanced.
>
> Do about what?  The above clearly shows what I told you before. There is
> no newer update, you are already up-to-date with the latest update
> available.
>
> Anyway, since you asked what to do: I suggest carefully re-reading my
> previous post and the documentation I referenced.
>
>  guenther
>
>
> [ full-quote snipped as well ]
>
> --
> char *t="\10pse\0r\0dtu\0.@ghno
> \x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
> c<<=1:
> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
> }}}
>
>

Re: sa-update

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
Please keep list-posts on list, please Reply to List.

On Tue, 2009-04-21 at 19:27 +0430, amir reza rahbaran wrote:
> yes, you`re right and the sa-update exit with code 1 and this is the
> result of

Yes, an exit code of 1 means there is no update. It does *not* indicate
any error.

> update report with "/usr/bin/sa-update -D --channelfile /etc/spam_channellist"
[ verbose debug stuff snipped ]
> [3449] dbg: channel: metadata version = 759778
> [3449] dbg: dns: 4.2.3.updates.spamassassin.org => 759778, parsed as 759778
> [3449] dbg: channel: current version is 759778, new version is 759778, skipping channel
> [3449] dbg: diag: updates complete, exiting with code 1
> 
> what shall I do?
> thanks in advanced.

Do about what?  The above clearly shows what I told you before. There is
no newer update, you are already up-to-date with the latest update
available.

Anyway, since you asked what to do: I suggest carefully re-reading my
previous post and the documentation I referenced.

  guenther


[ full-quote snipped as well ]

-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: sa-update

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Tue, 2009-04-21 at 10:33 +0430, amir reza rahbaran wrote:
> I ran sa-update and nothing was wrong . After completing its work I
> run "stat /var/lib/spamassassin/3.002004/" and show following results:

Please note that sa-update is silent, unless there are errors --
regardless whether there was an update or not. You can check the exit
code to see if anything has actually been updated.

  http://wiki.apache.org/spamassassin/RuleUpdates


>   File: `/var/lib/spamassassin/3.002004/'

> Access: 2009-04-21 08:08:36.000000000 +0430
> Modify: 2009-04-16 08:46:46.000000000 +0430
> Change: 2009-04-16 08:46:46.000000000 +0430
> 
> The first question is that why Change Date has not changed yet
> (Today`s Date: 2009-04-21) ?

Because there is no update since April 16.

> Second how can I get spamassassin update date ?

The per-channel cf file probably is a good indication about when you
last run sa-update *and* an update actually was available. (It is not
the date of the update being pushed, though.)

$ ls -l /var/lib/spamassassin/3.002005/updates_spamassassin_org.cf

  guenther


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}