move param
This commit is contained in:
parent
982ff576c5
commit
65e8d98646
|
@ -7,6 +7,7 @@ import os
|
||||||
username = ""
|
username = ""
|
||||||
password = ""
|
password = ""
|
||||||
imapserver = ""
|
imapserver = ""
|
||||||
|
N = 500
|
||||||
|
|
||||||
if not os.path.isdir('notes'):
|
if not os.path.isdir('notes'):
|
||||||
os.mkdir('notes')
|
os.mkdir('notes')
|
||||||
|
@ -14,9 +15,6 @@ if not os.path.isdir('notes'):
|
||||||
def clean(text):
|
def clean(text):
|
||||||
return "".join(c if c.isalnum() else "_" for c in text)
|
return "".join(c if c.isalnum() else "_" for c in text)
|
||||||
|
|
||||||
# number of top emails to fetch
|
|
||||||
N = 200
|
|
||||||
|
|
||||||
imap = imaplib.IMAP4_SSL(imapserver)
|
imap = imaplib.IMAP4_SSL(imapserver)
|
||||||
imap.login(username, password)
|
imap.login(username, password)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue