Sorry, this is wrong. See my later post.
Giampaolo > -----Original Message----- > From: Giampaolo Tomassoni [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 15, 2008 3:03 PM > To: 'ML spamassassin' > Subject: RE: rule based on time > > > -----Original Message----- > > From: Matt Kettler [mailto:[EMAIL PROTECTED] > > Sent: Sunday, June 15, 2008 2:08 PM > > To: Leonardo Rodrigues Magalhães > > Cc: ML spamassassin > > Subject: Re: rule based on time > > > > Leonardo Rodrigues Magalhães wrote: > > > > > > Hello Guys, > > > > > > Is it possible to write a rule that matches based on the current > > > time of the host running spamassassin ?? I would like to simply > add, > > > let's say, 1 point for EVERY message received during night, for > > > example, 9PM until 6AM. > > > > > > is that possible to write that rule ? > > > > > You'd have to write a plugin for it. > > If you trust the date and time of your internal relays, what about > something > like this: > > header NIGTHMARE X-Spam-Relays-Internal =~ > m'(?:09|10|11|0[0-6])(?::[0-9][0-9]){2}' > > ? > > Please note I didn't try it... > > Giampaolo