[prev in list] [next in list] [prev in thread] [next in thread]
List: subversion-issues
Subject: =?UTF-8?B?W0lzc3VlIDIxODddIE5ldyAtIFBhcnNpbmcgQ04gc3RyaW5ncyBhcw==?=
From: dirkx () tigris ! org
Date: 2004-12-27 18:06:42
Message-ID: 20041227180642.13231.qmail () tigris ! org
[Download RAW message or body]
http://subversion.tigris.org/issues/show_bug.cgi?id=2187
Issue #:|2187
Summary:|Parsing CN strings as 'Author's in the commit-email
|perl script
Component:|subversion
Version:|1.1.x
Platform:|Macintosh
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|ENHANCEMENT
Priority:|P3
Subcomponent:|unknown
Assigned to:|issues@subversion
Reported by:|dirkx
------- Additional comments from dirkx@tigris.org Mon Dec 27 10:06:42 -0800 2004 -------
When using x509 certificates the author is set to a CN. This causes
the From: field to look rather funny.
Adding the trappings below will make things look a bit more SMTP-ish.
Dw.
>> /usr/local/share/subversion/hook-scripts/commit-email.pl
my $mail_from = $author;
# dirkx@apache.org --- trap CN when x509 certs
# are used for auth. Would even be cuter if the
# O= and OU= would set the Organistion: header :-)
#
if ($mail_from =~ m|CN=(.*)/emailAddress=(.*)|i) {
$mail_from = "$1 <$2>";
}
elsif ($mail_from =~ m/emailAddress=(.*)/) {
$mail_from = $1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@subversion.tigris.org
For additional commands, e-mail: issues-help@subversion.tigris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic