From a03e5fc26c5297ebdcbfa9d569ce495b27fe1326 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 10 Apr 2024 17:51:44 +0200 Subject: [PATCH] drop file name cleanup --- imap2md/export-imap-notes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imap2md/export-imap-notes.py b/imap2md/export-imap-notes.py index 8370b7c..86f1b3e 100644 --- a/imap2md/export-imap-notes.py +++ b/imap2md/export-imap-notes.py @@ -12,8 +12,8 @@ N = 500 if not os.path.isdir('notes'): os.mkdir('notes') -def clean(text): - return "".join(c if c.isalnum() else "_" for c in text) +# def clean(text): + # return "".join(c if c.isalnum() else "_" for c in text) imap = imaplib.IMAP4_SSL(imapserver) imap.login(username, password) @@ -36,7 +36,7 @@ for i in range(messages, messages-N, -1): From = From.decode(encoding) print(subject) - filepath = clean(subject) + '.md' + filepath = subject + '.md' filepath = os.path.join('notes', filepath) if msg.is_multipart():