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
2ce90918
Commit
2ce90918
authored
Dec 05, 2011
by
Albert Ting
Committed by
Frédéric Buclin
Dec 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 422256: email_in.pl should send an email if user matching fails or returns too many results
r/a=mkanat
parent
61ead83b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
email_in.pl
email_in.pl
+14
-5
No files found.
email_in.pl
View file @
2ce90918
...
...
@@ -169,22 +169,29 @@ sub parse_mail {
return
\%
fields
;
}
sub
post_bug
{
sub
check_email_fields
{
my
(
$fields
)
=
@_
;
debug_print
(
'Posting a new bug...'
);
my
$user
=
Bugzilla
->
user
;
my
(
$retval
,
$non_conclusive_fields
)
=
Bugzilla::User::
match_field
({
'assigned_to'
=>
{
'type'
=>
'single'
},
'qa_contact'
=>
{
'type'
=>
'single'
},
'cc'
=>
{
'type'
=>
'multi'
}
'cc'
=>
{
'type'
=>
'multi'
},
'newcc'
=>
{
'type'
=>
'multi'
}
},
$fields
,
MATCH_SKIP_CONFIRM
);
if
(
$retval
!=
USER_MATCH_SUCCESS
)
{
ThrowUserError
(
'user_match_too_many'
,
{
fields
=>
$non_conclusive_fields
});
}
}
sub
post_bug
{
my
(
$fields
)
=
@_
;
debug_print
(
'Posting a new bug...'
);
my
$user
=
Bugzilla
->
user
;
check_email_fields
(
$fields
);
my
$bug
=
Bugzilla::
Bug
->
create
(
$fields
);
debug_print
(
"Created bug "
.
$bug
->
id
);
...
...
@@ -225,6 +232,8 @@ sub process_bug {
$fields
{
'removecc'
}
=
1
;
}
check_email_fields
(
\%
fields
);
my
$cgi
=
Bugzilla
->
cgi
;
foreach
my
$field
(
keys
%
fields
)
{
$cgi
->
param
(
-
name
=>
$field
,
-
value
=>
$fields
{
$field
});
...
...
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