Use nix shell to run oauth2 and MIMEmbellish

This commit is contained in:
coolneng 2022-05-01 18:57:42 +02:00
parent 1032a7fb6a
commit db367b140b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ IMAPAccount ugent
Host outlook.office365.com
User amin.kasrouaouam@ugent.be
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
CertificateFile /etc/ssl/certs/ca-certificates.crt

View File

@ -19,7 +19,7 @@ host smtp.office365.com
port 587
from 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
host disroot.org

View File

@ -1,3 +1,3 @@
#!/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"