Use nix shell to run oauth2 and MIMEmbellish
This commit is contained in:
parent
1032a7fb6a
commit
db367b140b
|
@ -58,7 +58,7 @@ IMAPAccount ugent
|
||||||
Host outlook.office365.com
|
Host outlook.office365.com
|
||||||
User amin.kasrouaouam@ugent.be
|
User amin.kasrouaouam@ugent.be
|
||||||
AuthMechs XOAUTH2
|
AuthMechs XOAUTH2
|
||||||
PassCmd "/home/coolneng/.local/share/scripts/mutt_oauth2.py /home/coolneng/.cache/tokenfile"
|
PassCmd "nix-shell -p python3 --command 'python /home/coolneng/.local/share/scripts/mutt_oauth2.py /home/coolneng/.cache/tokenfile'"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ host smtp.office365.com
|
||||||
port 587
|
port 587
|
||||||
from amin.kasrouaouam@ugent.be
|
from amin.kasrouaouam@ugent.be
|
||||||
user amin.kasrouaouam@ugent.be
|
user amin.kasrouaouam@ugent.be
|
||||||
passwordeval "/home/coolneng/.local/share/scripts/mutt_oauth2.py /home/coolneng/.cache/tokenfile"
|
passwordeval "nix-shell -p python3 --command 'python /home/coolneng/.local/share/scripts/mutt_oauth2.py /home/coolneng/.cache/tokenfile'"
|
||||||
|
|
||||||
account disroot
|
account disroot
|
||||||
host disroot.org
|
host disroot.org
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
nix-shell -p python39 --command "python ~/.local/bin/MIMEmbellish | msmtp -a $1 -t"
|
nix-shell -p python3 --command "python ~/.local/bin/MIMEmbellish | msmtp -a $1 -t"
|
||||||
|
|
Loading…
Reference in New Issue