This commit is contained in:
ccppi 2024-04-25 09:22:15 +02:00
parent ae8483765e
commit 7765c448ea
2 changed files with 15 additions and 1 deletions

14
config/alot/hooks.py Normal file
View File

@ -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()

View File

@ -1,7 +1,7 @@
____________ _____________ ________ ____________ _____________ ________
|offlineimap| |notmuch new | |alot |---->~.scripts/input_to_browser.py |offlineimap| |notmuch new | |alot |---->~.scripts/input_to_browser.py
|--------------------- |___________| -> ~/.mail/ -> |_____________| -> db -> |_______|---->urlscan |--------------------- |___________| -> ~/.mail/ -> |_____________| -> db -> |_______|---->urlscan
_____|______ ^ | |____________ _____|______ ^ notmuch-git | |____________
|gnu pass | |______________________________________________________|hooks.py | _______ |gnu pass | |______________________________________________________|hooks.py | _______
|_________| |__>|msmtp| |_________| |__>|msmtp|
| |_____| | |_____|