mail/aerc: Actually use userName as user name

This commit is contained in:
Simon Bruder 2022-07-29 08:28:43 +02:00
parent cf8ad77f6c
commit 5bb1d42abe
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -25,13 +25,13 @@ in
source = source =
if notmuch.enable if notmuch.enable
then "notmuch://${config.accounts.email.maildirBasePath}" then "notmuch://${config.accounts.email.maildirBasePath}"
else "`imap://${quoteMailAddress address}@${imap.host}`"; else "`imap://${quoteMailAddress userName}@${imap.host}`";
source-cred-cmd = "`${lib.concatStringsSep " " passwordCommand}`"; source-cred-cmd = "`${lib.concatStringsSep " " passwordCommand}`";
# TODO: remove when copy-to is implemented in aerc for notmuch # TODO: remove when copy-to is implemented in aerc for notmuch
outgoing = outgoing =
if notmuch.enable if notmuch.enable
then "${./msmtp-wrapper} ${name}" then "${./msmtp-wrapper} ${name}"
else "`smtp+plain://${quoteMailAddress address}@${smtp.host}`"; else "`smtp+plain://${quoteMailAddress userName}@${smtp.host}`";
outgoing-cred-cmd = "`${lib.concatStringsSep " " passwordCommand}`"; outgoing-cred-cmd = "`${lib.concatStringsSep " " passwordCommand}`";
from = "${realName} <${address}>"; from = "${realName} <${address}>";
smtp-starttls = if smtp.tls.useStartTls then "yes" else "no"; smtp-starttls = if smtp.tls.useStartTls then "yes" else "no";