<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 6/9/2024 10:35 AM, Dianne Skoll via
Mailmunge wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20240609133501.6e5bf207@gato.skoll.ca">
<pre>There's no equivalent to md_graphdefang_log, though it should be easy
to whip one up because that's really just normal logging in a specific
format.</pre>
</blockquote>
<p>My next stop was going to be the MD sources to extract that
format. ;)</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:20240609133501.6e5bf207@gato.skoll.ca">
<pre>
For logging, there's Mailmunge::Context::log:
<a class="moz-txt-link-freetext"
href="https://mailmunge.org/docs/Mailmunge__Context.php#canonical_first_recipient"
moz-do-not-send="true">https://mailmunge.org/docs/Mailmunge__Context.php#canonical_first_recipient</a>
Call it as: $ctx->log($level, $msg);
For example: $ctx->log('info', 'The sender was rejected');</pre>
</blockquote>
<p>Exactly what I need! I suggest adding an example call to the
example filter.</p>
<p><br>
</p>
</body>
</html>