Antoine,

> I'd like to be able to put the 'secret_id' value into a custom
> notification template. I've looked at the README.customize file but
> can't find a built-in macro that would expose it.

There isn't any, but is easy to add.

> I understand it must be a normal restriction but how can I achieve that?
> By defining a custom macro?

Try the attached trivial patch, it makes a macro 'secret_id'
available. Use a syntax [:secret_id] in a template to evaluate it.

  Mark
--- amavisd~	2011-07-01 18:21:07.000000000 +0200
+++ amavisd	2012-04-04 20:11:33.873937170 +0200
@@ -10330,2 +10330,4 @@
     i => sub {$MSGINFO->mail_id},  # long-term unique mail id on this system
+    mail_id => sub {$MSGINFO->mail_id}, # synonym for %i, base64url
+    secret_id => sub {$MSGINFO->secret_id},  # in base64url (RFC 4648) 
     LOGID  => sub {$MSGINFO->log_id},  # synonym for %n (no equivalent in SA)

Reply via email to