diff options
author | Robin Jarry <robin@jarry.cc> | 2022-11-23 00:38:15 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-12-02 22:10:36 +0100 |
commit | 9a46e693cb4d1087ad68cb8ea0d1f01652a76fe5 (patch) | |
tree | fecdb63dcaf8a7f76acb76a36a605cc720ea10d9 /widgets | |
parent | e88aea5ee68598d7716c788061490062eb7130dd (diff) | |
download | aerc-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.go | 2 |
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 } |