Kitaab

readImap dvlg

dev kendrit puralek python

published 2020-10-25 23:52

updated 2023-06-03 22:12

tasks | pro:readImap

  • [X] finish read-imap in spellbook #74e2ac3a
    • [X] parse email msgs #5a05a632
  • [X] import writing into kitaab #ac2ad812

done

download emails using email and imaplib in python save to out file using email.generator.Generator(fp) can read file through emails through email.parser.Parser(fp)

parsing

for part in msg.walk(): r = str(part.get_payload(decode=True))

todo

  • avoid bytes and empty parts
  • differentiate between links and passages/comments
  • read tags from identified link blocks
  • average links per day
  • most common tag

Backlinks