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
6f1cb53a
Commit
6f1cb53a
authored
Feb 12, 2003
by
justdave%syndicomm.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 58020: include bug summaries in whinemail.
Patch by pbaker@where2getit.com (Paul Baker) r= jouni, a= justdave
parent
fd7388fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
whineatnews.pl
whineatnews.pl
+9
-3
No files found.
whineatnews.pl
View file @
6f1cb53a
...
...
@@ -32,19 +32,24 @@ require "globals.pl";
ConnectToDatabase
();
SendSQL
(
"select bug_id,login_name from bugs,profiles where "
.
SendSQL
(
"select bug_id,
short_desc,
login_name from bugs,profiles where "
.
"bug_status = 'NEW' and to_days(now()) - to_days(delta_ts) > "
.
Param
(
'whinedays'
)
.
" and userid=assigned_to order by bug_id"
);
my
%
bugs
;
my
%
desc
;
my
@row
;
while
(
@row
=
FetchSQLData
())
{
my
(
$id
,
$email
)
=
(
@row
);
my
(
$id
,
$
desc
,
$
email
)
=
(
@row
);
if
(
!
defined
$bugs
{
$email
})
{
$bugs
{
$email
}
=
[]
;
}
if
(
!
defined
$desc
{
$email
})
{
$desc
{
$email
}
=
[]
;
}
push
@
{
$bugs
{
$email
}},
$id
;
push
@
{
$desc
{
$email
}},
$desc
;
}
...
...
@@ -59,7 +64,8 @@ foreach my $email (sort (keys %bugs)) {
my
$msg
=
PerformSubsts
(
$template
,
\%
substs
);
foreach
my
$i
(
@
{
$bugs
{
$email
}})
{
$msg
.=
" ${urlbase}show_bug.cgi?id=$i\n"
$msg
.=
" "
.
shift
(
@
{
$desc
{
$email
}})
.
"\n"
;
$msg
.=
" -> ${urlbase}show_bug.cgi?id=$i\n"
;
}
my
$sendmailparam
=
Param
(
'sendmailnow'
)
?
''
:
"-ODeliveryMode=deferred"
;
...
...
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