4
use File instead of istream
6
to/from: mbox maildir outlook eudora mbx ns/mozilla
8
extract attachments based on:
9
mime type, file extension, from, to, header fields values, etc.
15
mm [FUNC] [PARAMS...] [INFILE] [OUTFILE]
18
- considerare il singolo msg come mailbox con un msg
19
- se -in e -out non ci sono utilizzare stdin, stdout
32
mm mailbox-convert -in test.mbox,mbox -out dir/,maildir
33
mm mailbox-convert -in test.mbox,mbox -out boh,outlook
34
mm mailbox-split -in bit.mbox -out base_name,mbox -maxsize 5M
35
mm mailbox-split -in bit.mbox -out base_name,mbox -maxmsgs 100
36
mm mailbox-merge -in inbox/,maildir -in oldmsg.mbox -out all/,maildir
39
match // match entities
41
// exact, regex&substring match. if value is not
42
// specified works like --has-field
43
--field name [[=|~] value]
44
--ifield name [ [=|~] value] // case insensitive match
45
--[from|to|subject|cc|bcc|content-type|etc.] [=~] value
46
--msgsize [-+]num[b|k|M] // size ==,<,>,bytes,kilo,mega
47
--partsize [-+]num[b|k|M] // size ==,<,>,bytes,kilo,mega
48
--attach-filename [=~] *.EXE
51
--top-level // match the whole message
55
--mod-header name s/old/new/
58
--detach // selected entity
64
mm -in - --has-field X-Spam --action detach --binary
65
mm -in in.msg -out out.msg --top-level --attach file.bin --encoding qp
66
mm --content-type application/zip --detach
67
mm --has-binary-attach --detach
68
mm --field Content-Type --param name ~ '.*gz'
70
multi-function mail prog:
72
generate digests from msg lists
75
filter on attachment size
76
filter based on result of external program (ie antivirus)
78
regular expression filter
80
add/del/modify header field:
81
add/del attachment: (spam/virus killer)
82
create mbox from a list of file msg
83
extract file msgs from a mbox archive
84
merge two or more mailboxes
85
split a mailbox based on filter (to archive or delete)
86
partition mbxes (create 5 mbx of max 10MBytes from this_big.mbx)
89
applica Filtri: per es. filtra mbx e scrivi l'out sul file XX
90
esegui app se matcha il filtro X