On Mon, 2021-12-06 at 06:29 +0000, Kirmis, Ralf via Users wrote:
> Hello,
> we have a problem with the feedback of PDF passwords to the sender.
> If we have a recipient or multiple recipients via BCC, everything is
> fine.
> However, if 2 recipients are named as CC, then the notification is no
> longer correct.
> Both recipients are then named in the e-mail, but the second
> recipient receives the same password as
> the first to appear.
> How do we have to change it so that the passwords are correct?
>  
> Our template looks like this:
>  
>  
> <#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
> <#assign emails = passwords?keys>
> <#list emails as email>
> <#assign pwc = passwords[email]>
> </#list>
> <#list mail.recipients as recipient>
> </#list>
> Ihre Nachricht (ID: ${pwc.passwordID})  mit dem Betreff:
> ${qp(subject!"")}
>  
> <#list mail.recipients as recipient>
> wurde verschlüsselt an den Empfänger übertragen: (${qp(recipient)}) ,
> das Passwort ist:  ${pwc.password}
> </#list>
>  
> <#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
> <#assign emails = passwords?keys>
> <#list emails as email>
> <#assign pwc = passwords[email]>
> </#list>
> Bitte teilen Sie dem Empfänger das Passwort auf anderem Wege (z.B.
> telefonisch) mit.

Looks like your template is incorrect.

For example you step through the emails and assign a password but you
do not generate any output from the loop. The output will be generated
outside the loop (in another loop) and therefore only the last password
will be used:

> <#list emails as email>
> <#assign pwc = passwords[email]>
> </#list>

I suggest you compare your template with the factory template. With the
factory template it works (I just tested it)

Kind regards,

Martijn Brinkers


-- 
CipherMail email encryption
Email encryption with support for S/MIME,
OpenPGP, PDF Messenger and Webmail Messenger

Reply via email to