aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/send.go
diff options
context:
space:
mode:
authorBence Ferdinandy <bence@ferdinandy.com>2023-02-05 13:32:49 +0100
committerRobin Jarry <robin@jarry.cc>2023-02-12 00:42:00 +0100
commit05c5dcde23d210514ae84305fb1b0985e62f48fd (patch)
tree889e617128416e98d36b34bdc82122a85943eed0 /commands/compose/send.go
parenta553b33ebcbdf8b12ac1546ec45f4437dac1f8b0 (diff)
downloadaerc-05c5dcde23d210514ae84305fb1b0985e62f48fd.tar.gz
log: add debug for send configuration
Make it easier to debug send configurations. References: https://todo.sr.ht/~rjarry/aerc/127 Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r--commands/compose/send.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 1b65ab01..4eceefe9 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -107,6 +107,14 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error {
domain: domain,
}
+ log.Debugf("send config uri: %s", ctx.uri)
+ log.Debugf("send config scheme: %s", ctx.scheme)
+ log.Debugf("send config auth: %s", ctx.auth)
+ log.Debugf("send config starttls: %s", ctx.starttls)
+ log.Debugf("send config from: %s", ctx.from)
+ log.Debugf("send config rcpts: %s", ctx.rcpts)
+ log.Debugf("send config domain: %s", ctx.domain)
+
warn, err := composer.ShouldWarnAttachment()
if err != nil || warn {
msg := "You may have forgotten an attachment."