diff --git a/config/alot/hooks.py b/config/alot/hooks.py new file mode 100644 index 0000000..cb80f0b --- /dev/null +++ b/config/alot/hooks.py @@ -0,0 +1,14 @@ +import subprocess +import logging +from alot.settings.const import settings + +def getmail(ui=None): + ui.notify("fetching email..") + msg=subprocess.Popen("offlineimap".split(),stdout=subprocess.PIPE,stderr=subprocess.PIPE) +# ui.notify(msg) + +def pre_start(): + logging.info("run offlineimap") + subprocess.run(["offlineimap"]) + +pre_start() diff --git a/perfect-stack.note b/perfect-stack.note index b796757..96e8045 100644 --- a/perfect-stack.note +++ b/perfect-stack.note @@ -1,7 +1,7 @@ ____________ _____________ ________ |offlineimap| |notmuch new | |alot |---->~.scripts/input_to_browser.py |--------------------- |___________| -> ~/.mail/ -> |_____________| -> db -> |_______|---->urlscan -_____|______ ^ | |____________ +_____|______ ^ notmuch-git | |____________ |gnu pass | |______________________________________________________|hooks.py | _______ |_________| |__>|msmtp| | |_____|