Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
b511eb70
Commit
b511eb70
authored
Aug 20, 2013
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support 'mailfrom' option
parent
b122f458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tools/git/gitmail
tools/git/gitmail
+11
-0
No files found.
tools/git/gitmail
View file @
b511eb70
...
...
@@ -168,6 +168,12 @@ my @archivemail = get_config("archivemail",undef);
#
my
$replyto
=
get_config
("
replyto
",
undef
);
#
# If set, set the 'From' header in the mail - useful when being called
# from outside to set make the sender look right
#
my
$mailfrom
=
get_config
("
mailfrom
",
undef
);
#
# If set to true, detach and run in background - the push doesn't return until
# the hook finishes, so doing this means the pusher doesn't have to wait for
...
...
@@ -1121,6 +1127,11 @@ sub send_mail($$$@) {
open
(
MAIL
,
"
|
$SENDMAIL
-odb -oem -t
");
}
# If requested, set the From header
if
(
defined
(
$mailfrom
))
{
print
MAIL
"
From:
$mailfrom
\n
";
}
print
MAIL
"
To:
"
.
join
("
,
",
@$mailto
)
.
"
\n
";
print
MAIL
"
Subject:
$subject
\n
";
print
MAIL
"
Message-Id:
$messageid
\n
";
...
...
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