Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-extension-commandbymail
Commits
337a8c89
Commit
337a8c89
authored
Feb 07, 2013
by
Ruslan Zakirov
Browse files
get rid of uninit warning
parent
33d02398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/RT/Interface/Email/Filter/TakeAction.pm
lib/RT/Interface/Email/Filter/TakeAction.pm
+4
-1
No files found.
lib/RT/Interface/Email/Filter/TakeAction.pm
View file @
337a8c89
...
...
@@ -208,7 +208,7 @@ sub GetCurrentUser {
$
RT::
Logger
->
debug
("
Found pseudoheader: $1 => $2
");
}
my
%cmds
;
while
(
my
$key
=
_CanonicalizeCommand
(
lc
shift
@items
)
)
{
while
(
my
$key
=
_CanonicalizeCommand
(
shift
@items
)
)
{
my
$val
=
shift
@items
;
# strip leading and trailing spaces
$val
=~
s/^\s+|\s+$//g
;
...
...
@@ -650,6 +650,9 @@ sub _SetAttribute {
sub
_CanonicalizeCommand
{
my
$key
=
shift
;
return
$key
unless
defined
$key
;
$key
=
lc
$key
;
# CustomField commands
$key
=~
s/^(add|del|)c(?:ustom)?-?f(?:ield)?\.?[({\[](.*)[)}\]]$/$1customfield{$2}/i
;
return
$key
;
...
...
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