If the script reads the E-Mail contents line
by line, with the given line stored in the
variable $line, then
Extract Subject:
if (ereg("Subject🙁.+)",$line,$subject))
{
$subject[0] has full line
$subject[1] has everything after ":"
}
The (.+) means match every character ex-
cluding a newline, and save the match in
the variable $subject. The "" says that
the match must be at the start of the line.
If a match is made, $subject[0] will be the
entire line (so, equal to $line), and
$subject[1] will be everything after the ":"
which is what you want.
Do the same thing for the Return-Path and
any other item you wish to extract.
Hope this helps.
Michael