mirror of
https://codeberg.org/privacy1st/exec-notify
synced 2024-12-22 23:16:04 +01:00
v0.1.4
This commit is contained in:
parent
a00a1f029d
commit
9eafc7bb77
@ -3,7 +3,7 @@
|
||||
|
||||
[metadata]
|
||||
name = de.p1st.exec_notify
|
||||
version = 0.1.3
|
||||
version = 0.1.4
|
||||
author = Daniel Langbein
|
||||
author_email = daniel@systemli.org
|
||||
description = Send mail with process output
|
||||
|
@ -10,10 +10,12 @@ from de.p1st.exec_notify.lib import config, util
|
||||
|
||||
|
||||
def sendMailOrWriteToFile(SUBJECT: str, BODY: str, informAboutLocalMail: bool = True):
|
||||
mailDir = config.getMailDir()
|
||||
|
||||
if informAboutLocalMail and _localMailExists():
|
||||
SUBJECT=f'{SUBJECT} | UNREAD LOCAL MAIL'
|
||||
BODY=f'[!] Note [!]\n' \
|
||||
f'There is local mail inside [file][maildir] that was not delivered previously! ' \
|
||||
f'There is local mail inside {mailDir} that was not delivered previously! ' \
|
||||
f'Please read and then delete it to get rid of this warning.\n\n\n' \
|
||||
f'{BODY}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user