From 20983b322a8d3938024880070fc919e11ba209b6 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 11 Apr 2024 15:27:04 +0200 Subject: [PATCH] add note index in output --- imap2md/export-imap-notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap2md/export-imap-notes.py b/imap2md/export-imap-notes.py index aabb28b..656a21d 100644 --- a/imap2md/export-imap-notes.py +++ b/imap2md/export-imap-notes.py @@ -32,7 +32,7 @@ for i in range(messages, messages-N, -1): if isinstance(From, bytes): From = From.decode(encoding) - print(subject) + print(str(i) + ' - ' + subject) filepath = subject + '.md' filepath = os.path.join('notes', filepath)