Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big refactor, store regexp's in the YAML confs, not strings that get …
…eval'd. Hacks for character encodings.
- Loading branch information
Showing
42 changed files
with
262 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
ignore: | ||
image/jpeg: | ||
- /^.*idea_banner.jpg$/i | ||
- !ruby/regexp /^.*idea_banner.jpg$/i | ||
text/html: | ||
- /<title>Message from memova<\/title>/im | ||
- !ruby/regexp /<title>Message from memova<\/title>/im | ||
|
||
transform: | ||
|
||
number: | ||
- from | ||
- /^([^\/@]+).*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\/@]+).*/ | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
--- | ||
txt.att.net: mms.att.net | ||
cingularme.com: mms.att.net | ||
mmode.com: mms.att.net | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /This Media Message has been sent using an O2 camera phone/mi | ||
- !ruby/regexp /This Media Message has been sent using an O2 camera phone/mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /^This is an MMS message. 20\d\d Sprint Nextel. All rights reserved./ | ||
- /^This is an MMS message. Please go to http:\/\/mms.nextel.com\/mms\/anon\/do\/legacy\/viewDirect/ | ||
- /^This is a multi-part message in MIME format./ | ||
text/html: | ||
- /^<html><body>\s+<center>This is an MMS message. <br><center> 20\d\d Sprint Nextel. All rights reserved<\/center><br><img/m | ||
- /^<html><body>\s+This is an MMS message. <br><center> 20\d\d Sprint Nextel. All rights reserved/m | ||
- /^<html><body>\s+This is an MMS message. Please go to <a href="http:\/\/mms.nextel.com\/mms\/anon\/do\/legacy\/viewDirect/m | ||
text/plain: | ||
- !ruby/regexp /^This is an MMS message. 20\d\d Sprint Nextel. All rights reserved./ | ||
- !ruby/regexp /^This is an MMS message. Please go to http:\/\/mms.nextel.com\/mms\/anon\/do\/legacy\/viewDirect/ | ||
- !ruby/regexp /^This is a multi-part message in MIME format./ | ||
text/html: | ||
- !ruby/regexp /^<html><body>\s+<center>This is an MMS message. <br><center> 20\d\d Sprint Nextel. All rights reserved<\/center><br><img/m | ||
- !ruby/regexp /^<html><body>\s+This is an MMS message. <br><center> 20\d\d Sprint Nextel. All rights reserved/m | ||
- !ruby/regexp /^<html><body>\s+This is an MMS message. Please go to <a href="http:\/\/mms.nextel.com\/mms\/anon\/do\/legacy\/viewDirect/m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
ignore: | ||
image/jpeg: | ||
- /^.*tpm.jpg$/i | ||
- /^.*vf5.jpg$/i | ||
- /^.*reb.jpg$/i | ||
- !ruby/regexp /^.*tpm.jpg$/i | ||
- !ruby/regexp /^.*vf5.jpg$/i | ||
- !ruby/regexp /^.*reb.jpg$/i | ||
image/gif: | ||
- /^.*vf9.gif$/i | ||
- !ruby/regexp /^.*vf9.gif$/i | ||
text/plain: | ||
- /^You have received an MMS message. To see the message correctly, you will need to view this message.*/im | ||
- !ruby/regexp /^You have received an MMS message. To see the message correctly, you will need to view this message.*/im | ||
text/html: | ||
- /Yospace Technologies Ltd - MMS-to-Email version 1-0-1-1/im | ||
- !ruby/regexp /Yospace Technologies Ltd - MMS-to-Email version 1-0-1-1/im | ||
|
||
number: | ||
- from | ||
- /^([^\s\/@]+).*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\s\/@]+).*/ | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
ignore: | ||
application/smil: | ||
- /^pres\.smil/i | ||
- !ruby/regexp /^pres\.smil/i | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
transform: | ||
text/plain: | ||
- - /^Multimedia message$/i | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /^Multimedia message$/i | ||
- "" | ||
- - /\A(.+?)\s+--\s+=+\s+This mobile text message is brought to you by AT&T.*/im | ||
- "\1" | ||
- - /\A(.+?)\s+--\s+=+\s+Brought to you by, Cingular Wireless Messaging.*/im | ||
- "\1" | ||
- - /\A(.+?)\s+--\s+Mobile Email from a Cingular Wireless Customer.*/im | ||
- "\1" | ||
- - !ruby/regexp /\A(.+?)\s+--\s+=+\s+This mobile text message is brought to you by AT&T.*/im | ||
- "\\1" | ||
- - !ruby/regexp /\A(.+?)\s+--\s+=+\s+Brought to you by, Cingular Wireless Messaging.*/im | ||
- "\\1" | ||
- - !ruby/regexp /\A(.+?)\s+--\s+Mobile Email from a Cingular Wireless Customer.*/im | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
--- | ||
ignore: | ||
application/smil: | ||
- /^<smil><head><layout><root-layout width=/i | ||
application/smil: | ||
- !ruby/regexp /^<smil><head><layout><root-layout width=/i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
ignore: | ||
image/gif: | ||
- /^Vodafone Logo/i | ||
text/html: | ||
- /You have received a picture message from phone number/im | ||
text/plain: | ||
- /You have received a picture message from mobile phone number/im | ||
image/gif: | ||
- !ruby/regexp /^Vodafone Logo/i | ||
text/html: | ||
- !ruby/regexp /You have received a picture message from phone number/im | ||
text/plain: | ||
- !ruby/regexp /You have received a picture message from mobile phone number/im | ||
number: | ||
- from | ||
- /^([^\s]+)\s.*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\s]+)\s.*/ | ||
- "\\1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
--- | ||
ignore: | ||
image/jpeg: | ||
- /^.*html_DEFAULT_SLIDE_header.JPG$/i | ||
- !ruby/regexp /^.*html_DEFAULT_SLIDE_header.JPG$/i | ||
image/gif: | ||
- /^.*footer.gif$/i | ||
- /^.*reply.gif$/i | ||
- !ruby/regexp /^.*footer.gif$/i | ||
- !ruby/regexp /^.*reply.gif$/i | ||
text/html: | ||
- /.*/ | ||
- !ruby/regexp /.*/ | ||
|
||
transform: | ||
|
||
number: | ||
- from | ||
- /^([^\/@]+).*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\/@]+).*/ | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
ignore: | ||
image/bmp: | ||
- /^.*logo.bmp$/i | ||
- !ruby/regexp /^.*logo.bmp$/i | ||
text/html: | ||
- /.*/ | ||
- !ruby/regexp /.*/ | ||
|
||
transform: | ||
|
||
number: | ||
- from | ||
- /^([^\/@]+).*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\/@]+).*/ | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
ignore: | ||
image/gif: | ||
image/gif: | ||
- top.gif | ||
- bottom.gif | ||
- middle_img.gif | ||
text/html: | ||
- /<html>\s+<head>\s+<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=iso-8859-1\">\s+<title>MMS Email<\/title>/im | ||
transform: | ||
text/plain: | ||
- - /Note:\s{1,2}.*?\s+message:\s{1,2}(.+)$/m | ||
- "\1" | ||
text/html: | ||
- !ruby/regexp /<html>\s+<head>\s+<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=iso-8859-1\">\s+<title>MMS Email<\/title>/im | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /Note:\s{1,2}.*?\s+message:\s{1,2}(.+)$/m | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /Meldingen er sendt fra mobiltelefon og kan kun besvares med mobiltelefon. Nummeret finner du i e-postadressen./im | ||
text/plain: | ||
- !ruby/regexp /Meldingen er sendt fra mobiltelefon og kan kun besvares med mobiltelefon. Nummeret finner du i e-postadressen./im |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
ignore: | ||
text/html: | ||
- /Diese Nachricht wurde Ihnen von einem Handy mit der Nummer/im | ||
transform: | ||
text/plain: | ||
- - /.*bermittelt.\s+(.+)\s+Wenn Sie mehr.*/im | ||
- "\1" | ||
text/html: | ||
- !ruby/regexp /Diese Nachricht wurde Ihnen von einem Handy mit der Nummer/im | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /.*bermittelt.\s+(.+)\s+Wenn Sie mehr.*/im | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
transform: | ||
text/plain: | ||
- - /^You have received a new message$/i | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /^You have received a new message$/i | ||
- "" | ||
ignore: | ||
image/jpeg: | ||
image/jpeg: | ||
- images/reb.jpg | ||
- images/tpm.jpg | ||
image/gif: | ||
image/gif: | ||
- images/vf9.gif | ||
text/html: | ||
- /<html><head>.*<title>MMS Message<\/title>/im | ||
text/plain: | ||
- /You have received an MMS message. To see the message correctly, you will need to view this message\s+in a graphical email application./im | ||
text/html: | ||
- !ruby/regexp /<html><head>.*<title>MMS Message<\/title>/im | ||
text/plain: | ||
- !ruby/regexp /You have received an MMS message. To see the message correctly, you will need to view this message\s+in a graphical email application./im |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /\AThank you for using Picture and Video Messaging by U\.S\. Cellular.*/m | ||
transform: | ||
text/plain: | ||
- - /\A(.+?)\s+Thank you for using Picture and Video Messaging by U\.S\. Cellular.*/m | ||
- "\1" | ||
text/plain: | ||
- !ruby/regexp /\AThank you for using Picture and Video Messaging by U\.S\. Cellular.*/m | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /\A(.+?)\s+Thank you for using Picture and Video Messaging by U\.S\. Cellular.*/m | ||
- "\\1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
ignore: | ||
text/html: | ||
- /.*You have an <b>MMS<\/b> message!.*/m | ||
- !ruby/regexp /.*You have an <b>MMS<\/b> message!.*/m | ||
transform: | ||
text/plain: | ||
- - /\s*This is an MMS message brought to you by Vodacom\. Click here to view online presentation http:\/\/mms.vodacom4me.co.za\/.*$/ | ||
- - !ruby/regexp /\s*This is an MMS message brought to you by Vodacom\. Click here to view online presentation http:\/\/mms.vodacom4me.co.za\/.*$/ | ||
- "" | ||
number: | ||
- from | ||
- /^([^\s]+)\s.*/ | ||
- "\1" | ||
- !ruby/regexp /^([^\s]+)\s.*/ | ||
- "\\1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /\A\.\z/im | ||
- !ruby/regexp /\A\.\z/im | ||
- . | ||
text/html: | ||
- /I-Memova - Email Praktis. Cara Taktis. Powered by IM2./i | ||
- !ruby/regexp /I-Memova - Email Praktis. Cara Taktis. Powered by IM2./i | ||
image/jpeg: | ||
- cp__newBanner.jpg | ||
number: | ||
- return-path | ||
- /^([^@]+)@.*/ | ||
- "\1" | ||
- !ruby/regexp /^([^@]+)@.*/ | ||
- "\\1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
ignore: | ||
text/plain: | ||
- /This is an MMS message. Please go to http/m | ||
- !ruby/regexp /This is an MMS message. Please go to http/m | ||
text/html: | ||
- /You've received a Message from a TELUS phone./m | ||
- !ruby/regexp /You've received a Message from a TELUS phone./m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
ignore: | ||
application/smil: | ||
- /\A<smil><head><layout><root-layout height=/m | ||
text/plain: | ||
- !ruby/regexp /\A<smil><head><layout><root-layout height=/m | ||
text/plain: | ||
- banniere.txt | ||
- /\A--\s+This Orange Multi Media Message was sent wirefree from an Orange MMS.*/mi | ||
transform: | ||
text/plain: | ||
- - /^Orange UK MMS$/i | ||
- !ruby/regexp /\A--\s+This Orange Multi Media Message was sent wirefree from an Orange MMS.*/mi | ||
transform: | ||
text/plain: | ||
- - !ruby/regexp /^Orange UK MMS$/i | ||
- "" | ||
- - /^Wiadomo\303\205\302\233\303\204\302\207 multimedialna\.$/i | ||
- - !ruby/regexp /^Wiadomo.* multimedialna\.$/i | ||
- "" |
Oops, something went wrong.