Below is an overview of the objects (fields) per trigger that can be evaluated and/or set via JavaScript.
Read: means that this value can be read.
Write: means that this value can be set. If non-writeable values are set there will be no error, but their set value will not be used.
For ticket related fields like priority (priid) the default value is read
aufid: If this trigger sets the aufid or on another way an aufid is found afterwards, then this mail is assigned to the ticket and all other changes of this trigger are ignored. This is because it is then an existing ticket where the MAIL_IN trigger can do its work.
The two triggers provide the ability to read, NOT modify, job and user data. They also do NOT modify the contents of the auto-email. Read fields can be used for logical operations.
Note: Both triggers are executed only on authorized tickets.