/
mms2r_media.yml
48 lines (48 loc) · 1.59 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
---
ignore:
text/plain:
- /^\(no subject\)$/i
- /\ASent via BlackBerry (from|by) .*$/im
- /\ASent from my Verizon Wireless BlackBerry$/im
- /\ASent from (my|your) iPhone.?$/im
- /\ASent on the Sprint.* Now Network.*$/im
multipart/mixed:
- "/^Attachment: /i"
transform:
text/plain:
- - /\A(.*?)Sent via BlackBerry (from|by) .*$/im
- "\1"
- - /\A(.*?)Sent from my Verizon Wireless BlackBerry$/im
- "\1"
- - /\A(.*?)Sent from (my|your) iPhone.?$/im
- "\1"
- - /\A(.*?)\s+image\/jpeg$/im
- "\1"
- - /\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:
:iphone: !ruby/regexp /iPhone/i
:blackberry: !ruby/regexp /BlackBerry/i
:dash: !ruby/regexp /T-Mobile Dash/i
:droid: !ruby/regexp /Droid/i
:htc: !ruby/regexp /Eris|HERO200/i