# # This message is used when mailing an initial response back to the # PR submitter. # mail-format "initial-response-to-submitter" { from-address { fixed-address "gnats-admin" } # For addresses that are joined with |, we try each one in turn, from # left to right, until we find one that's non-empty. # Multiple addresses may be listed here. to-addresses { "Reply-To:" | "From:" | "From" | "Submitter-Id" } header { format "Subject: GNATS: Re: %s/%s: %s\n\ Content-Type: text/html;\n" fields { "Category" "Number" "Subject:" } } body { format "\ \ \ \n\ \n\ \n\ \n\ PR submission notification PR/%s\n\ \n\ \n\ \ \n\

PR submission notification PR/%s

\n\ \n\
\n\
Thank you very much for your problem report.\n\
It has the internal identification `%s/%s'.\n\
The individual assigned to look at your\n\
report is: %s. \n\
\n\
You can view the status of this report by following the link \n\
\n\
\n\
http://www/cgi-bin/gnats/gnatsweb.pl?database=default&cmd=view&pr=%s\n\
\n\
%F%F%F%F\n\
\n\ \n\ \n\ " fields { "Number" "Number" "Category" "Number" "Responsible[fullname]" "Number" "Number" "Category" "Responsible" "Synopsis" "Arrival-Date" } } } # # The message sent to the responsible parties when a new non-pending # PR arrives. # mail-format "initial-pr-notification" { # Who the mail is from. from-address { "From:" | "From" } # We send mail to the responsible person, the addresses listed in # the contact and notify fields of the submitter adm file entry for # the Submitter-Id, and the notify person listed in the category # adm file. to-addresses { "Responsible" "Submitter-Id[contact]" "Submitter-Id[notify]" "Category[notify]" } # The reply-to address; either use the Reply-To: or From: header values # from the PR, or the Submitter-Id's mail address. reply-to { "Reply-To:" | "From:" | "Submitter-Id" } # Any additional header text we want to add. Must have a newline at the # end of each line. header { format "Subject: GNATS: %s/%s: %s\nCc: %s\n\ Content-Type: text/html;\n" fields { "Category" "Number" "Subject:" "Notify-List" } } body { format "\ \ \ \n\ \n\ \n\ \n\ PR submission notification PR/%s\n\ \n\ \n\ \ \n\

PR submission notification PR/%s

\n\ \n\
\n\
The following PR has been submitted by %s.\n\
It has the internal identification `%s/%s'.\n\
\n\
You can view the status of this report by following the link \n\
\n\
\n\
http://www/cgi-bin/gnats/gnatsweb.pl?database=default&cmd=view&pr=%s\n\
\n\
Or you can edit it with this link \n\
\n\
\n\
http://www/cgi-bin/gnats/gnatsweb.pl?database=default&cmd=edit&pr=%s\n\
\n\
%F%F%F%F\n\
\n\ \n\ \n\ " fields { "Number" "Number" "Originator" "Category" "Number" "Number" "Number" "Number" "Number" "Category" "Responsible" "Synopsis" "Arrival-Date" } } } # # This format is used for initial PRs that end up as pending PRs. # mail-format "initial-pr-notification-pending" { # # Is this good? # from-address { "From:" | "From" } # # Boring--we only tell gnats-admin about it. # to-addresses { fixed-address "gnats-admin" } # # Questionable for a pending PR. # reply-to { "Reply-To:" | "From:" | "Submitter-Id" } header { format "Subject: GNATS: %s/%s: %s (pending)\nCc: %s\n" fields { "Category" "Number" "Subject:" "Notify-List" } } body { # # See above. # # ($ExpireTime != "") { # format "\tThe contract type is `%s' with a response time of %d business hours.\n" # fields { "Submitter-Id[type]" "$ExpireTime" } # } format "%P" fields { "$" } } } # # Used when a response to a PR is received via email. # # The following parameters are passed in: # $MailFrom -- the From: line of the original message # $MailTo -- the To: line of the original message # $MailSubject: The Subject: line of the original message # $MailCC: The CC: line of the original message # $NewAuditTrail -- the text of the new audit trail entry (the body of # the message) # mail-format "appended-email-response" { from-address { "$MailFrom" } # # Should we send a copy to the user that sent in the message? # to-addresses { "Responsible" "Submitter-Id[contact]" } reply-to { "$MailFrom" } header { format "Subject: GNATS: %s/%s: %s\n" fields { "Category" "Number" "$MailSubject" } } body { format "The following reply was made to PR %s/%s; it has been noted by GNATS.\n\n%s" fields { "Category" "Number" "$NewAuditTrail" } } } # # Used to send mail for a change that generates an Audit-Trail entry. # The following parameters are available: # $EditUserEmailAddr -- the email address of the user editing the PR # $OldResponsible -- the previous Responsible field entry, if it was changed # $NewAuditTrail -- the Audit-Trail: entries that have been appended # by the edits # # AKK mail-format "audit-mail" { from-address { "$EditUserEmailAddr" } # to-addresses { "Responsible" "$OldResponsible" "Category[notify]" "Submitter-Id[contact]" "$EditUserEmailAddr" "Reply-To:" | "From:" | "From" } # # ??? Good question! # #reply-to { # fixed-address "bugs" # } header { format "Subject: GNATS: Re: %s/%s\nCc: %s\n\ Content-Type: text/html;\n" fields { "Category" "Number" "Notify-List" } } body { format "\ \ \ \n\ \n\ \n\ \n\ PR status change PR/%s\n\ \n\ \n\ \ \n\

PR status change PR/%s

\n\ \n\
\n\
The PR submitted by %s regarding %s has had its status modified.\n\
\n\
\
\n\
\n\

%s has updated this PR and is awaiting feedback - details on the link below
\n\ Please can you give feedback on this call

\n\
\n\
\n\
\
\
\
\
\n\
\n\

%s has suspended this PR - no further action is planned.

\n\
\n\
\n\
\
\
\
\
\n\
\n\

This PR has now been approved

\n\
\n\
\n\
\
\
\
\
You can view the details by following the link \n\
\n\
\n\
http://www/cgi-bin/gnats/gnatsweb.pl?database=default&cmd=view&pr=%s\n\
\n\n\
\n\ \ \ \ \
\n\ Please test the modifications and then click Approve or Reject
\n\ \n\ \"Accept\"
\n\ \n\ \"Reject\"
\n\
\n\ \ \ \ \
\n\n\
%s\n\
\n\ \n\ \n\ " fields { "Number" "State" "Number" "Originator" "Synopsis" "Responsible[fullname]" "Responsible[fullname]" "Number" "Number" "Number" "Originator" "Number" "Originator" "$NewAuditTrail" } } }