iouasjef
This commit is contained in:
parent
ae8483765e
commit
7765c448ea
14
config/alot/hooks.py
Normal file
14
config/alot/hooks.py
Normal 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()
|
@ -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|
|
||||||
| |_____|
|
| |_____|
|
||||||
|
Loading…
Reference in New Issue
Block a user