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
8ef31d2a
Commit
8ef31d2a
authored
Mar 17, 2005
by
jake%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backing out the fix for bug 135812 as it causes the mail params to be deleted on new installs.
parent
8eace845
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
42 deletions
+12
-42
Config.pm
Bugzilla/Config.pm
+0
-12
defparams.pl
defparams.pl
+4
-16
cancel-token.txt.tmpl
template/en/default/account/cancel-token.txt.tmpl
+1
-2
change-new.txt.tmpl
template/en/default/account/email/change-new.txt.tmpl
+1
-2
change-old.txt.tmpl
template/en/default/account/email/change-old.txt.tmpl
+1
-2
forgotten-password.txt.tmpl
...e/en/default/account/password/forgotten-password.txt.tmpl
+1
-2
email.txt.tmpl
template/en/default/request/email.txt.tmpl
+1
-2
multipart-mime.txt.tmpl
template/en/default/whine/multipart-mime.txt.tmpl
+0
-1
whine.pl
whine.pl
+3
-3
No files found.
Bugzilla/Config.pm
View file @
8ef31d2a
...
...
@@ -251,18 +251,6 @@ sub UpdateParams {
delete
$param
{
'enablequips'
};
}
# Update e-mail text to use new mailfrom param (Bug 135812)
if
(
!
exists
$param
{
'mailfrom'
})
{
$param
{
'passwordmail'
}
=~
s/^From: bugzilla-daemon$/From: %mailfrom%/mi
;
$param
{
'passwordmail'
}
=~
s/\n\n/\nX-Bugzilla-Type: admin\n\n/
;
$param
{
'newchangedmail'
}
=~
s/^From: bugzilla-daemon$/From: %mailfrom%/mi
;
$param
{
'newchangedmail'
}
=~
s/\n\n/\nX-Bugzilla-Type: newchanged\n\n/
;
$param
{
'voteremovedmail'
}
=~
s/^From: bugzilla-daemon$/From: %mailfrom%/mi
;
$param
{
'voteremovedmail'
}
=~
s/\n\n/\nX-Bugzilla-Type: voteremoved\n\n/
;
$param
{
'whinemail'
}
=~
s/^From: %maintainer%$/From: %mailfrom%/mi
;
$param
{
'whinemail'
}
=~
s/\n\n/\nX-Bugzilla-Type: whine\n\n/
;
}
# --- DEFAULTS FOR NEW PARAMS ---
foreach
my
$item
(
@param_list
)
{
...
...
defparams.pl
View file @
8ef31d2a
...
...
@@ -308,14 +308,6 @@ sub find_languages {
},
{
name
=>
'mailfrom'
,
desc
=>
'The email address of the Bugzilla mail daemon. Some email systems '
.
'require this to be a valid email address.'
,
type
=>
't'
,
default
=>
'bugzilla-daemon'
},
{
name
=>
'urlbase'
,
desc
=>
'The URL that is the common initial leading part of all Bugzilla '
.
'URLs.'
,
...
...
@@ -726,10 +718,9 @@ sub find_languages {
'password. %<i>anythingelse</i>% gets replaced by the '
.
'definition of that parameter (as defined on this page).'
,
type
=>
'l'
,
default
=>
'From:
%mailfrom%
default
=>
'From:
bugzilla-daemon
To: %mailaddress%
Subject: Your Bugzilla password.
X-Bugzilla-Type: admin
To use the wonders of Bugzilla, you can use the following:
...
...
@@ -762,12 +753,11 @@ To use the wonders of Bugzilla, you can use the following:
'replaced by the definition of that parameter (as defined on '
.
'this page).'
,
type
=>
'l'
,
default
=>
'From:
%mailfrom%
default
=>
'From:
bugzilla-daemon
To: %to%
Subject: [Bug %bugid%] %neworchanged%%summary%
%threadingmarker%
X-Bugzilla-Reason: %reasonsheader%
X-Bugzilla-Type: newchanged
%urlbase%show_bug.cgi?id=%bugid%
...
...
@@ -799,10 +789,9 @@ Configure bugmail: %urlbase%userprefs.cgi?tab=email
'address, so that if the mail bounces, a real person can know '
.
'that there are bugs assigned to an invalid address.'
,
type
=>
'l'
,
default
=>
'From: %mai
lfrom
%
default
=>
'From: %mai
ntainer
%
To: %email%
Subject: Your Bugzilla buglist needs attention.
X-Bugzilla-Type: whine
[This e-mail has been automatically generated.]
...
...
@@ -1043,10 +1032,9 @@ You will get this message once a day until you\'ve dealt with these bugs!
'compatibility. %<i>anythingelse</i>% gets replaced by the '
.
'definition of that parameter (as defined on this page).'
,
type
=>
'l'
,
default
=>
'From:
%mailfrom%
default
=>
'From:
bugzilla-daemon
To: %to%
Subject: [Bug %bugid%] Some or all of your votes have been removed.
X-Bugzilla-Type: voteremoved
Some or all of your votes have been removed from bug %bugid%.
...
...
template/en/default/account/cancel-token.txt.tmpl
View file @
8ef31d2a
...
...
@@ -22,10 +22,9 @@
[% PROCESS global/variables.none.tmpl %]
From:
[% Param('mailfrom') %]
From:
bugzilla-admin-daemon
To: [% emailaddress %]
Subject: [% PROCESS subject %]
X-B[%#%]ugzilla-Type: admin
A request was cancelled from [% remoteaddress %].
...
...
template/en/default/account/email/change-new.txt.tmpl
View file @
8ef31d2a
...
...
@@ -22,10 +22,9 @@
[% PROCESS global/variables.none.tmpl %]
[% expiration_ts = token_ts + (max_token_age * 86400) %]
From:
[% Param('mailfrom') %]
From:
bugzilla-admin-daemon
To: [% emailaddress %]
Subject: [% terms.Bugzilla %] Change Email Address Request
X-B[%#%]ugzilla-Type: admin
[%+ terms.Bugzilla %] has received a request to change the email address
for the account [% oldemailaddress %] to your address.
...
...
template/en/default/account/email/change-old.txt.tmpl
View file @
8ef31d2a
...
...
@@ -27,13 +27,12 @@
[% PROCESS global/variables.none.tmpl %]
[% expiration_ts = token_ts + (max_token_age * 86400) %]
From:
[% Param('mailfrom') %]
From:
bugzilla-admin-daemon
To: [% emailaddress %]
Subject: [% terms.Bugzilla %] Change Email Address Request
Importance: High
X-MSMail-Priority: High
X-Priority: 1
X-B[%#%]ugzilla-Type: admin
[%+ terms.Bugzilla %] has received a request to change the email address
for your account to [%+ newemailaddress %].
...
...
template/en/default/account/password/forgotten-password.txt.tmpl
View file @
8ef31d2a
...
...
@@ -22,10 +22,9 @@
[% PROCESS global/variables.none.tmpl %]
[% expiration_ts = token_ts + (max_token_age * 86400) %]
From:
[% Param('mailfrom') %]
From:
bugzilla-admin-daemon
To: [% emailaddress %]
Subject: [% terms.Bugzilla %] Change Password Request
X-B[%#%]ugzilla-Type: admin
You have (or someone impersonating you has) requested to change your
[%+ terms.Bugzilla %] password. To complete the change, visit the following link:
...
...
template/en/default/request/email.txt.tmpl
View file @
8ef31d2a
...
...
@@ -36,11 +36,10 @@
[% to_identity = flag.setter.identity _ "'s request" %]
[% subject_status = statuses.${flag.status} %]
[% END %]
From:
[% Param('mailfrom') %]
From:
bugzilla-request-daemon
To: [% to_email %]
CC: [% flag.type.cc_list %]
Subject: [% flag.type.name %] [%+ subject_status %]: [[% terms.Bug %] [%+ flag.target.bug.id %]] [% flag.target.bug.summary %]
X-B[%#%]ugzilla-Type: request
[%- IF flag.target.attachment.exists %] :
[Attachment [% flag.target.attachment.id %]] [% flag.target.attachment.summary %][% END %]
...
...
template/en/default/whine/multipart-mime.txt.tmpl
View file @
8ef31d2a
...
...
@@ -34,7 +34,6 @@
From: [% from %]
To: [% recipient.email %]
Subject: [[% terms.Bugzilla %]] [% subject %]
X-B[%#%]ugzilla-Type: whine
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="[% boundary %]"
...
...
whine.pl
View file @
8ef31d2a
...
...
@@ -99,13 +99,13 @@ if (Param('shutdownhtml')) {
}
# Send whines from the address in the 'mai
lfrom
' Parameter so that all
# Send whines from the address in the 'mai
ntainer
' Parameter so that all
# Bugzilla-originated mail appears to come from a single address.
my
$fromaddress
=
Param
(
'mai
lfrom
'
);
my
$fromaddress
=
Param
(
'mai
ntainer
'
);
if
(
$fromaddress
!~
Param
(
'emailregexp'
))
{
die
"Cannot run. "
.
"The
Bugzilla
email address has not been properly set!\n"
;
"The
maintainer
email address has not been properly set!\n"
;
}
# Check the nomail file for users who should not receive mail
...
...
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