/
mms2r_media.yml
63 lines (63 loc) · 2.33 KB
/
mms2r_media.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
ignore:
text/plain:
- !ruby/regexp /^\(no subject\)$/i
- !ruby/regexp /\ASent via BlackBerry (from|by) .*$/im
- !ruby/regexp /\ASent from my Verizon Wireless BlackBerry$/im
- !ruby/regexp /\ASent from (my|your) iPhone.?$/im
- !ruby/regexp /\ASent on the Sprint.* Now Network.*$/im
multipart/mixed:
- !ruby/regexp "/^Attachment: /i"
transform:
text/plain:
- - !ruby/regexp /\A(.*?)Sent via BlackBerry (from|by) .*$/im
- "\\1"
- - !ruby/regexp /\A(.*?)Sent from my Verizon Wireless BlackBerry$/im
- "\\1"
- - !ruby/regexp /\A(.*?)Sent from (my|your) iPhone.?$/im
- "\\1"
- - !ruby/regexp /\A(.*?)\s+image\/jpeg$/im
- "\\1"
- - !ruby/regexp /\A(.*?)Sent on the Sprint.* Now Network.*$/im
- "\\1"
device_types:
headers:
x-mailer:
:iphone: !ruby/regexp /iPhone Mail/i
:blackberry: !ruby/regexp /Palm webOS/i
mime-version:
:iphone: !ruby/regexp /iPhone Mail/i
x-rim-org-msg-ref-id:
:blackberry: !ruby/regexp /.+/
# TODO do something about the assortment of camera models that have
# been seen:
# 1.3 Megapixel, 2.0 Megapixel, BlackBerry, CU920, G'z One TYPE-S,
# Hermes, iPhone, LG8700, LSI_S5K4AAFA, Micron MT9M113 1.3MP YUV,
# Motorola Phone, Omni_vision-9650, Pre,
# Seoul Electronics & Telecom SIM120B 1.3M, SGH-T729, SGH-T819,
# SPH-M540, SPH-M800, SYSTEMLSI S5K4BAFB 2.0 MP, VX-9700
#
# NOTE: These model strings are stored in the exif model header of an image file
# created and sent by the device, the regex is used by mms2r to detect the
# model string
models:
:blackberry: !ruby/regexp /BlackBerry/i
:dash: !ruby/regexp /T-Mobile Dash/i
:droid: !ruby/regexp /Droid/i
:htc: !ruby/regexp /HTC|Eris|HERO200/i
:iphone: !ruby/regexp /iPhone/i
makes:
:apple: !ruby/regexp /^Apple$/i
:casio: !ruby/regexp /^CASIO$/i
:dash: !ruby/regexp /T-Mobile Dash/i
:google: !ruby/regexp /^google$/i
:htc: !ruby/regexp /^HTC/i
:lge: !ruby/regexp /^(LG|CX87BL05)/i
:motorola: !ruby/regexp /^Motorola/i
:pantech: !ruby/regexp /^PANTECH$/i
:qualcomm: !ruby/regexp /^MSM6/i
:research_in_motion: !ruby/regexp /^(RIM|Research In Motion)$/i
:samsung: !ruby/regexp /^(SAMSUNG|ES.M800|M6550B-SAM-4480)/i
:seoul_electronics: !ruby/regexp /^ISUS0/i
:sprint: !ruby/regexp /^Sprint$/i
:utstarcom: !ruby/regexp /^T1A_UC1.88$/i