~ubuntu-branches/ubuntu/natty/mimetic/natty

« back to all changes in this revision

Viewing changes to examples/TODO

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2006-06-16 13:16:07 UTC
  • Revision ID: james.westby@ubuntu.com-20060616131607-245mqjypkjuahq6b
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
EXAMPLES
 
2
--------
 
3
b64,qp:
 
4
        use File instead of istream
 
5
convert mailboxes: 
 
6
        to/from: mbox maildir outlook eudora mbx ns/mozilla
 
7
 
 
8
extract attachments based on: 
 
9
        mime type, file extension, from, to, header fields values, etc.
 
10
 
 
11
exbin:
 
12
        maildir support
 
13
 
 
14
mm command line:
 
15
        mm [FUNC] [PARAMS...] [INFILE] [OUTFILE]
 
16
 
 
17
        note:
 
18
        - considerare il singolo msg come mailbox con un msg
 
19
        - se -in e -out non ci sono utilizzare stdin, stdout
 
20
 
 
21
        MAILBOX FUNCTIONS:
 
22
                mailbox-convert
 
23
                mailbox-split
 
24
                        -maxsize 
 
25
                        -maxmsgs
 
26
                mailbox-merge
 
27
 
 
28
                COMMON PARAMS:
 
29
                -in file,format
 
30
                -out file/dir,format
 
31
        EXAMPLES:
 
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
 
37
 
 
38
        MAIL FUNCTIONS:
 
39
                match // match entities
 
40
                        --has-field name
 
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
 
49
                        --iname *.jpg
 
50
                        --has-binary-attach
 
51
                        --top-level // match the whole message
 
52
                actions
 
53
                        --add-header name
 
54
                        --del-header name
 
55
                        --mod-header name s/old/new/
 
56
 
 
57
                        --attach file.bin 
 
58
                        --detach // selected entity
 
59
                options:
 
60
                        --encoding base64|qp
 
61
                        --in [file|-]
 
62
                        --out [file|-]
 
63
 
 
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'
 
69
 
 
70
multi-function mail prog:
 
71
        more mailbox formats
 
72
        generate digests from msg lists
 
73
        file extension filter
 
74
        index/search ?
 
75
        filter on attachment size
 
76
        filter based on result of external program (ie antivirus)
 
77
        Insert disclaimers 
 
78
        regular expression filter
 
79
 
 
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)
 
87
        convert mailbox type
 
88
        search && buildidx
 
89
        applica Filtri: per es. filtra mbx e scrivi l'out sul file XX
 
90
        esegui app se matcha il filtro X
 
91
        mark msg un/read