aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/README.notes
blob: d522092ed9c1c23630876a8f8721b169994fc6b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
wlp module from 

import wlp
wlf = open('/home/matej/projekty/pyg/examples/whitelist.example')
f = wlp.setfilebyfd(wlf)
# or wlp.setfilebyname('/home/matej/projekty/pyg/examples/whitelist.example')
wlp.mkdict()

In [9]: wlp.mkdict()
Out[9]: 
{'alfarano@students.cs.unibo.it': {'From:': 'Cosimo Alfarano',
  'X-Firstname:': 'Cosimo'},
 'kame@innocent.com': {'From:': 'kame@inwind.it',
  'Reply-to': 'me',
  'Reply-to:': 'KA',
  'Sender:': 'Kalfa'}}