Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d5db04e2
Commit
d5db04e2
authored
Jan 24, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 31314 : Support for "In-Reply-To" header in emails
Patch by Marc Schumann <wurblzap@gmail.com> r=jake a=myk
parent
6cea1a15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
BugMail.pm
Bugzilla/BugMail.pm
+12
-0
defparams.pl
defparams.pl
+6
-1
No files found.
Bugzilla/BugMail.pm
View file @
d5db04e2
...
...
@@ -46,6 +46,13 @@ my $last_changed;
my
@excludedAddresses
=
();
my
$sitespec
=
'@'
.
Param
(
'urlbase'
);
$sitespec
=~
s/:\/\//\./
;
# Make the protocol look like part of the domain
$sitespec
=~
s/^([^:\/]+):(\d+)/$1/
;
# Remove a port number, to relocate
if
(
$2
)
{
$sitespec
=
"-$2$sitespec"
;
# Put the port number back in, before the '@'
}
# disable email flag for offline debugging work
my
$enableSendMail
=
1
;
...
...
@@ -854,6 +861,11 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) {
$substs
{
"reasonsheader"
}
=
join
(
" "
,
@reasons
);
$substs
{
"reasonsbody"
}
=
$reasonsbody
;
$substs
{
"space"
}
=
" "
;
if
(
$isnew
)
{
$substs
{
'threadingmarker'
}
=
"Message-ID: <bug-$id-$userid$sitespec>"
;
}
else
{
$substs
{
'threadingmarker'
}
=
"In-Reply-To: <bug-$id-$userid$sitespec>"
;
}
my
$template
=
Param
(
"newchangedmail"
);
...
...
defparams.pl
View file @
d5db04e2
...
...
@@ -719,13 +719,18 @@ To use the wonders of Bugzilla, you can use the following:
'getting the email, suitable for use in an email header (such '
.
'as X-Bugzilla-Reason). %reasonsbody% is replaced by text that '
.
'explains why the user is getting the email in more user '
.
'friendly text than %reasonsheader%. %<i>anythingelse</i>% gets '
.
'friendly text than %reasonsheader%. '
.
'%threadingmarker% will become either a Message-ID line (for '
.
'new-bug messages) or a In-Reply-To line (for bug-change '
.
'messages). '
.
'%<i>anythingelse</i>% gets '
.
'replaced by the definition of that parameter (as defined on '
.
'this page).'
,
type
=>
'l'
,
default
=>
'From: bugzilla-daemon
To: %to%
Subject: [Bug %bugid%] %neworchanged%%summary%
%threadingmarker%
X-Bugzilla-Reason: %reasonsheader%
%urlbase%show_bug.cgi?id=%bugid%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment