diff options
author | Luke Smith <luke@lukesmith.xyz> | 2025-02-28 09:48:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-28 09:48:31 +0000 |
commit | 5300aa7f723941b444f6fe13d9190582b80c071a (patch) | |
tree | c913119400c8883ab0da4c17e915b913b3b46885 /bin | |
parent | 05fcf7b3e113e8b3975e023217caf83007adbf01 (diff) | |
parent | 650794bb1d20c3f7e8d3dfc0fc9a7add8519c5f3 (diff) |
Merge pull request #924 from CarlosLoboxyz/master
Add goimapnotify for push notifications
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -12,12 +12,14 @@ msmtprc="${XDG_CONFIG_HOME:-$HOME/.config}/msmtp/config" msmtplog="${XDG_STATE_HOME:-$HOME/.local/state}/msmtp/msmtp.log" mbsyncrc="${MBSYNCRC:-$HOME/.mbsyncrc}" mpoprc="${XDG_CONFIG_HOME:-$HOME/.config}/mpop/config" +imapnotify="${XDG_CONFIG_HOME:-$HOME/.config}/imapnotify" mpoptemp="$muttshare/mpop-temp" mbsynctemp="$muttshare/mbsync-temp" mutttemp="$muttshare/mutt-temp" msmtptemp="$muttshare/msmtp-temp" onlinetemp="$muttshare/online-temp" notmuchtemp="$muttshare/notmuch-temp" +imapnotifytemp="$muttshare/imapnotify-temp" # With the use of templates, it's impossible to use parameter substitution. # Therefore, some default variables that might be otherwise overwritten are set # here. @@ -78,6 +80,10 @@ prepmpop() { envsubst <"$mpoptemp" >>"$mpoprc" } +prepimapnotify() { + mkdir -p "${imapnotify%/*}" ; envsubst < "$imapnotifytemp" >> "$imapnotify/$fulladdr.conf" +} + prepmutt() { mkdir -p "${muttrc%/*}" "$accdir" envsubst <"$mutttemp" >"$accdir/$fulladdr.muttrc" @@ -106,6 +112,7 @@ getprofiles() { prepmsmtp prepmutt prepnotmuch + prepimapnotify } parsedomains() { |