Sending gpg-encrypted mails via cli

Hi,

when trying to send an encrypted mail to somebody whose key is not present in
rt, the Webfrontend shows a nice error and explains everything.
But when you send an email via the rt cli, the recipient
gets an awful email telling him that he didn’t get a mail:

You received this message as we have no your public PGP key
or we have a problem with your key. Inform the administrator about the problem.

Is there any way to intercept errors and tell the user instead of
sending mails ?
Even setting the To: in the template does not help. The recipient still
gets this mail. I Thought the mail would be sent to the Address I set in
the Template.

Cheers,
Christoph

GPG-Key: http://www.kluenter.de/chris.gpg
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB 725A F76C 803C 758F 71C0

Hello,

RT owner recieves a mail based on ‘Error to RT owner: public key’ template.

I believe setting empty content in ‘Error: public key’ template would
disable emails to recipients.On Thu, Mar 3, 2011 at 11:26 PM, christoph christoph@kluenter.de wrote:

Hi,

when trying to send an encrypted mail to somebody whose key is not present in
rt, the Webfrontend shows a nice error and explains everything.
But when you send an email via the rt cli, the recipient
gets an awful email telling him that he didn’t get a mail:

You received this message as we have no your public PGP key
or we have a problem with your key. Inform the administrator about the problem.

Is there any way to intercept errors and tell the user instead of
sending mails ?
Even setting the To: in the template does not help. The recipient still
gets this mail. I Thought the mail would be sent to the Address I set in
the Template.

Cheers,
Christoph


GPG-Key: http://www.kluenter.de/chris.gpg
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB 725A F76C 803C 758F 71C0

Best regards, Ruslan.

Hi Ruslan,

  • Am Fri, Mar 04, 2011 at 02:31:50PM +0300 , schrieb Ruslan Zakirov:

Hello,

RT owner recieves a mail based on ‘Error to RT owner: public key’ template.

I believe setting empty content in ‘Error: public key’ template would
disable emails to recipients.
I deleted the content of the template and received an empty email.
No Subject, no body.
Do you know any other way to disable sending error-messages to users ?

Cheers,
Christoph

Hack lib/RT/Interface/Email.pm, just comment out the code.On Fri, Mar 4, 2011 at 4:41 PM, Christoph Kluenter christoph@kluenter.de wrote:

Hi Ruslan,

  • Am Fri, Mar 04, 2011 at 02:31:50PM +0300 , schrieb Ruslan Zakirov:

Hello,

RT owner recieves a mail based on ‘Error to RT owner: public key’ template.

I believe setting empty content in ‘Error: public key’ template would
disable emails to recipients.
I deleted the content of the template and received an empty email.
No Subject, no body.
Do you know any other way to disable sending error-messages to users ?

Cheers,
Christoph

On Thu, Mar 3, 2011 at 11:26 PM, christoph christoph@kluenter.de wrote:

Hi,

when trying to send an encrypted mail to somebody whose key is not present in
rt, the Webfrontend shows a nice error and explains everything.
But when you send an email via the rt cli, the recipient
gets an awful email telling him that he didn’t get a mail:

You received this message as we have no your public PGP key
or we have a problem with your key. Inform the administrator about the problem.

Is there any way to intercept errors and tell the user instead of
sending mails ?
Even setting the To: in the template does not help. The recipient still
gets this mail. I Thought the mail would be sent to the Address I set in
the Template.

Cheers,
Christoph


GPG-Key: http://www.kluenter.de/chris.gpg
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB 725A F76C 803C 758F 71C0


Best regards, Ruslan.

Best regards, Ruslan.