1 # $Id: mbox.flt,v 1.1.2.1 2006-01-23 10:35:17 adam Exp $
2 # This reads mbox mails. This filter is similar to mail.flt but is
3 # using string tags rathar than numeric tags (and tag sets).
4 # We do our best to index the Message-ID so that we can uniquely identify
5 # the mail being indexed.
6 BEGIN { begin record mbox }
7 /^From:/ BODY /$/ { data -element name $1 }
8 /^[Mm][Ee][Ss][Ss][Aa][Gg][Ee]-[Ii][Dd]:/ BODY /$/ { data -element id $1 }
9 /^Subject:/ BODY /$/ { data -element title $1 }
10 /^Date:/ BODY /$/ { data -element date $1 }
12 data -text -element body $1