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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7e50e09d
Commit
7e50e09d
authored
Apr 14, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 110980 - no email to cc list when opening new bug
original patch by jake@bugzilla.org, merged to current sources by bbaetz@student.usyd.edu.au r=gerv, justdave
parent
055ae240
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
post_bug.cgi
post_bug.cgi
+19
-1
processmail
processmail
+6
-1
No files found.
post_bug.cgi
View file @
7e50e09d
...
...
@@ -242,6 +242,7 @@ SendSQL("INSERT INTO longdescs (bug_id, who, bug_when, thetext)
my
%
ccids
;
my
$ccid
;
my
@cc
;
# Add the CC list
if
(
defined
$::FORM
{
'cc'
})
{
...
...
@@ -251,15 +252,32 @@ if (defined $::FORM{'cc'}) {
if
(
$ccid
&&
!
$ccids
{
$ccid
})
{
SendSQL
(
"INSERT INTO cc (bug_id, who) VALUES ($id, $ccid)"
);
$ccids
{
$ccid
}
=
1
;
push
(
@cc
,
$person
);
}
}
}
}
# Assemble the -force* strings so this counts as "Added to this capacity"
my
@ARGLIST
=
();
if
(
@cc
)
{
push
(
@ARGLIST
,
"-forcecc"
,
join
(
","
,
@cc
));
}
push
(
@ARGLIST
,
"-forceowner"
,
DBID_to_name
(
$::FORM
{
assigned_to
}));
if
(
defined
$::FORM
{
qacontact
})
{
push
(
@ARGLIST
,
"-forceqacontact"
,
DBID_to_name
(
$::FORM
{
qacontact
}));
}
push
(
@ARGLIST
,
"-forcereporter"
,
DBID_to_name
(
$::userid
));
push
(
@ARGLIST
,
$id
,
$::COOKIE
{
'Bugzilla_login'
});
# Send mail to let people know the bug has been created.
# See attachment.cgi for explanation of why it's done this way.
my
$mailresults
=
''
;
open
(
PMAIL
,
"-|"
)
or
exec
(
'./processmail'
,
$id
,
$::COOKIE
{
'Bugzilla_login'
}
);
open
(
PMAIL
,
"-|"
)
or
exec
(
'./processmail'
,
@ARGLIST
);
$mailresults
.=
$_
while
<
PMAIL
>
;
close
(
PMAIL
);
...
...
processmail
View file @
7e50e09d
...
...
@@ -818,10 +818,15 @@ if ($#ARGV >= 0 && $ARGV[0] eq "-forceqacontact") {
@
{
$force
{
'QAcontact'
}}
=
(
trim
(
shift
(
@ARGV
)));
}
if
(
$#ARGV
>=
0
&&
$ARGV
[
0
]
eq
"-forcereporter"
)
{
shift
(
@ARGV
);
@
{
$force
{
'Reporter'
}}
=
trim
(
shift
(
@ARGV
));
}
if
((
$#ARGV
<
0
)
||
(
$#ARGV
>
1
))
{
print
"Usage:\n processmail {bugid} {nametoexclude} "
.
"[-forcecc list,of,users]\n [-forceowner name] "
.
"[-forceqacontact name]\nor\n"
.
"[-forceqacontact name]\n
[-forcereporter name]\n
or\n"
.
" processmail rescanall\n"
;
exit
;
}
...
...
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