matching multiple lines

Matthias Andree matthias.andree at gmx.de
Thu Jul 22 14:02:37 CEST 2004


"Peter Bishop" <pgb at adelard.com> writes:

> On 20 Jul 2004 at 12:07, Boris 'pi' Piwinger wrote:
>
>> Peter Bishop said:
>> > Does anyone know if you can match more
>> > than one line of email text with a single procmail "*" command?
>> 
>> AFAIK you can't.
>> 
>> > I need it to cover cases where an email header line
>> > is split over several lines, (with tabs on continuation lines)
>> 
>> No need to do it. It is joined automatically.
>
> Apparently it doesn't for attachment info that is not in the main
> header.

procmail isn't MIME aware and it might be a good idea to use a real MIME
parser. There are MIME parser modules for many popular script languages,
among them Perl.

-- 
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)



More information about the Bogofilter mailing list