summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-21 01:05:08 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-21 01:05:08 -0400
commit9e8ef3bce15484b89291ec8b49be8fbd4c744dab (patch)
tree2398e403ebf64a13edc7db9d63de2ad9fa57c7b2
parent2b6ca7b292178468841f6e6ccc1ae605cac9b096 (diff)
some more scrubbing
darcs-hash:20080721050508-84dde-5e6d8121b403e9b81f8f46a2f5c7de5908b9593a.gz
-rwxr-xr-xmaildaemon.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/maildaemon.php b/maildaemon.php
index 432ce6343..3f8d6a5b5 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;
}