aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-23 00:38:15 +0100
committerRobin Jarry <robin@jarry.cc>2022-12-02 22:10:36 +0100
commit9a46e693cb4d1087ad68cb8ea0d1f01652a76fe5 (patch)
treefecdb63dcaf8a7f76acb76a36a605cc720ea10d9 /widgets
parente88aea5ee68598d7716c788061490062eb7130dd (diff)
downloadaerc-9a46e693cb4d1087ad68cb8ea0d1f01652a76fe5.tar.gz
msgviewer: add logs to display pager and filter commands
That may be useful to debug some filter matchers. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msgviewer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index ea28165e..1cc2d6f5 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -603,6 +603,8 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig,
fmt.Sprintf("AERC_SUBJECT=%s", info.Envelope.Subject))
filter.Env = append(filter.Env, fmt.Sprintf("AERC_FROM=%s",
format.FormatAddresses(info.Envelope.From)))
+ logging.Debugf("<%s> part=%v %s: %v | %v",
+ info.Envelope.MessageId, curindex, mime, filter, pager)
if pagerin, err = pager.StdinPipe(); err != nil {
return nil, err
}