# Command by Mail CC and AddCC for new users

Hi,

It looks as if the Command by Mail commands CC: and AddCC: can only be used for existing users. Is
this configurable so that non-existing users may be added automatically using the command by mail
commands?

Kind regards,
Tom

Tom Robinson

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson@motec.com.au

signature.asc (250 Bytes)

It looks as if the Command by Mail commands CC: and AddCC: can only be used for existing users. Is
this configurable so that non-existing users may be added automatically using the command by mail
commands?

It isn’t configurable, but it would certainly be possible to patch it
so that if the user isn’t found, it just calls AddWatcher with the
Email argument instead of the PrincipalId argument.

-kevin

It looks as if the Command by Mail commands CC: and AddCC: can only be used for existing users. Is
this configurable so that non-existing users may be added automatically using the command by mail
commands?
It isn’t configurable, but it would certainly be possible to patch it
so that if the user isn’t found, it just calls AddWatcher with the
Email argument instead of the PrincipalId argument.

Thanks Kevin. With my limited experience with RT, are you implying I write some sort of scrip or
actually patch the code somehow? Where would I begin with that sort of customisation?

Tom Robinson

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson@motec.com.au

signature.asc (250 Bytes)

It looks as if the Command by Mail commands CC: and AddCC: can only be used for existing users. Is
this configurable so that non-existing users may be added automatically using the command by mail
commands?
It isn’t configurable, but it would certainly be possible to patch it
so that if the user isn’t found, it just calls AddWatcher with the
Email argument instead of the PrincipalId argument.

Thanks Kevin. With my limited experience with RT, are you implying I write some sort of scrip or
actually patch the code somehow? Where would I begin with that sort of customisation?

This would require patching the RT-Extension-CommandByMail extension.
You can search it’s codebase for AddWatcher and compare the variant it
uses to the documented arguments here: