For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > February 2007 > Re: [PHP-DOC] Shorten subjects of PHPDOC commit emails









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DOC] Shorten subjects of PHPDOC commit emails
techtonik

2007-02-27, 7:01 pm

On 2/25/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
> On 2/25/07, techtonik <techtonik@php.net> wrote:
>
> Why should it?
> The most important info are the files and the module.


Even if it is important in 99% of cases (i.e. 99 files from 100) the
module is obvious and those extra symbols make me constantly scroll to
see what name is at the end of /en/reference/bla-bla-bla/path.xml

If there is a brand new customized loginfo.pl script (why not PHP,
BTW?) - why it can't be made to display a module name only if it is
different from default? For example (I do know Perl, do not beat me):

--- loginfo_old.pl Tue Feb 27 12:24:46 2007
+++ loginfo.pl Tue Feb 27 16:26:45 2007
@@ -224,6 +224,14 @@
$DAYABBR[$gmtime[6]], $gmtime[3], $MONABBR[$gmtime[4]],
$gmtime[5] + 1900, $gmtime[2], $gmtime[1], $gmtime[0]);

+my $subj_module = $module.$subj_tag;
+# Skip module name in subject line if the name is default for mailing list
+if ($subj_tag eq "") {
+ if ($module eq "phpdoc" && $#mailto eq 1 && $mailto[1] eq
"phpdoc\@lists.php.net") {
+ $subj_module = "";
+ }
+}
+
no strict; # quiet warnings after here

my $email;
@@ -232,7 +240,7 @@
"To: ". join(", ", @mailto). "\n".
$msgid.
$rfc822date.
- "Subject: cvs: $module$subj_tag $subj\n";
+ "Subject: cvs: $subj_module $subj\n";

my $common_body = "".
"$cvsuser\t\t".localtime()." UTC\n".



>
> You said earlier that it was already decided to split the lists
> down... make it happen :)


Gimme da passwoodzzz! =) No, seriously - I just do not know what is
the next thing to do - I've already mailed systems several times.

--
--anatoly t.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com