l 2 mail: save send emails in notmuch

This commit is contained in:
lassulus 2016-06-22 19:12:34 +02:00
parent cd3da52779
commit 2915a48246

View File

@ -10,8 +10,9 @@ let
account default: prism account default: prism
''; '';
msmtp = pkgs.writeDashBin "msmtp" '' msmtp = pkgs.writeBashBin "msmtp" ''
exec ${pkgs.msmtp}/bin/msmtp -C ${msmtprc} $@ ${pkgs.coreutils}/bin/tee >(${pkgs.notmuch}/bin/notmuch insert +sent) | \
${pkgs.msmtp}/bin/msmtp -C ${msmtprc} $@
''; '';
muttrc = pkgs.writeText "muttrc" '' muttrc = pkgs.writeText "muttrc" ''
@ -42,7 +43,7 @@ let
set nm_record = yes set nm_record = yes
set nm_record_tags = "-inbox me archive" set nm_record_tags = "-inbox me archive"
set virtual_spoolfile=yes # enable virtual folders set virtual_spoolfile=yes # enable virtual folders
set sendmail="msmtp" # enables parsing of outgoing mail set sendmail="${msmtp}/bin/msmtp" # enables parsing of outgoing mail
set use_from=yes set use_from=yes
set envelope_from=yes set envelope_from=yes