From: Evan Prodromou Date: Mon, 21 Jul 2008 05:05:08 +0000 (-0400) Subject: some more scrubbing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e8ef3bce15484b89291ec8b49be8fbd4c744dab;p=quix0rs-gnu-social.git some more scrubbing darcs-hash:20080721050508-84dde-5e6d8121b403e9b81f8f46a2f5c7de5908b9593a.gz --- diff --git a/maildaemon.php b/maildaemon.php index 432ce6343b..3f8d6a5b56 100755 --- a/maildaemon.php +++ b/maildaemon.php @@ -199,12 +199,25 @@ class MailerDaemon { if (preg_match('/^\s*On.*wrote:\s*$/', $line)) { continue; } + // probably interesting to someone, not us + if (preg_match('/^\s*Sent via/', $line)) { + continue; + } // skip everything after a sig if (preg_match('/^\s*--+\s*$/', $line) || preg_match('/^\s*__+\s*$/', $line)) { break; } + // skip everything after Outlook quote + if (preg_match('/^\s*-+\s*Original Message\s*-+\s*$/', $line)) { + break; + } + // skip everything after weird forward + if (preg_match('/^\s*Begin\s+forward/', $line)) { + break; + } + $output .= ' ' . $line; }