From 7765c448eabf9cbc95bcf8e140604ab323c85cb6 Mon Sep 17 00:00:00 2001 From: ccppi Date: Thu, 25 Apr 2024 09:22:15 +0200 Subject: [PATCH] iouasjef --- config/alot/hooks.py | 14 ++++++++++++++ perfect-stack.note | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 config/alot/hooks.py 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| | |_____|