]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some more scrubbing
authorEvan Prodromou <evan@prodromou.name>
Mon, 21 Jul 2008 05:05:08 +0000 (01:05 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 21 Jul 2008 05:05:08 +0000 (01:05 -0400)
darcs-hash:20080721050508-84dde-5e6d8121b403e9b81f8f46a2f5c7de5908b9593a.gz

maildaemon.php

index 432ce6343b4a929cab777a684df96391bb5f3119..3f8d6a5b562ecee282e6ce2c08872a5964409f4d 100755 (executable)
@@ -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;
                }