You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

parser_date 642B

123456789101112131415161718192021
  1. require ["comparator-i;ascii-numeric","date","fileinto","relational"];
  2. # rule:[date]
  3. if allof (date :originalzone :value "ge" :comparator "i;ascii-numeric" "date" "hour" "09")
  4. {
  5. fileinto "urgent";
  6. }
  7. # rule:[date-weekday]
  8. if date :is "received" "weekday" "0"
  9. {
  10. fileinto "weekend";
  11. }
  12. # rule:[date-zone]
  13. if date :zone "-0500" :value "gt" :comparator "i;ascii-numeric" "received" "iso8601" "2007-02-26T09:00:00-05:00"
  14. {
  15. stop;
  16. }
  17. # rule:[currentdate]
  18. if anyof (currentdate :is "weekday" "0", currentdate :value "lt" :comparator "i;ascii-numeric" "hour" "09", currentdate :value "ge" :comparator "i;ascii-numeric" "date" "2007-06-30")
  19. {
  20. stop;
  21. }