procmail
[Top] [All Lists]

How to match on empty body?

1996-10-14 06:21:30
Is there a recipe for detecting messages in which the body is empty?
The following recipe doesn't work, because (according to the verbose
log) the "< 2" condition doesn't match.

  :0
  * ^From.*(root|backup)
  * ^TOroot
  {
  # Delete all having no message, no subject
    :0
    * ! ^Subject:
    {
      :0B
      * < 2
      /dev/null
    }
  # Other stuff deleted
  }

Thanks,
-- 
Rick Troxel  Rick_Troxel(_at_)nih(_dot_)gov   
rick(_at_)helix(_dot_)nih(_dot_)gov  301/435-2983
  http://www.access.digex.net/%7Erobjen/dc-sage/bios/rick_troxel/
///////////////////////////////////////////////////////////////////
 All effort and exertion put forth by man from the fullness of his
 heart is worship, if it  is prompted  by the  highest motives and
 the will to do service to humanity.                 --Abdu'l-Baha

<Prev in Thread] Current Thread [Next in Thread>