a script which will activate/deactivate a rule in Mail

Hi all i have scoured the net and only found the reverse order rule that runs an applescript.
Its an out of office on mail set up as a rule, but only has to be turned on for one day, so I might as well be automate it.
I have CronniX running on the ma anyhow so that can take of the timings.
Any help with this would be most appreciated
Thanks…
Rob

Hi,

this is quite easy,
the class rule has a property enabled


tell application "Mail"
	set enabled of rule "myRule" to true -- or false to disable
end tell

Fantastic works perfectly…
As they say easy when you know how…
Thank you very much for that… StefanK