cvs: CVSROOT / loginfo.pl
| From: | Sascha Schumann | Date: | Fri, 20 Oct 2000 23:33:25 +0000 |
| Subject: | cvs: CVSROOT / loginfo.pl | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2179@lists.php.net to get a copy of this message | ||
sas Fri Oct 20 16:33:25 2000 EDT
Modified files:
/CVSROOT loginfo.pl
Log:
Add proper Content-Disposition header, so that clients don't display the
MIME part by default.
Also increase the treshhold. Might be subject to further discussion.
Index: CVSROOT/loginfo.pl diff -u CVSROOT/loginfo.pl:1.34 CVSROOT/loginfo.pl:1.35 --- CVSROOT/loginfo.pl:1.34 Fri Oct 20 16:15:17 2000 +++ CVSROOT/loginfo.pl Fri Oct 20 16:33:25 2000 @@ -210,7 +210,7 @@ my $boundary = $cvsuser.time(); -if (length($diffmsg) > 5) { +if (length($diffmsg) > 8000) { $email = $common_header. "MIME-Version: 1.0\n". "Content-Type: multipart/mixed; boundary=\"$boundary\"\n". @@ -222,6 +222,7 @@ $common_body. "--$boundary\n". "Content-Type: text/plain\n". + "Content-Disposition: attachment\n". "\n". "$diffmsg\n". "--$boundary--\n";
Index: CVSROOT/loginfo.pl diff -u CVSROOT/loginfo.pl:1.34 CVSROOT/loginfo.pl:1.35 --- CVSROOT/loginfo.pl:1.34 Fri Oct 20 16:15:17 2000 +++ CVSROOT/loginfo.pl Fri Oct 20 16:33:25 2000 @@ -210,7 +210,7 @@ my $boundary = $cvsuser.time(); -if (length($diffmsg) > 5) { +if (length($diffmsg) > 8000) { $email = $common_header. "MIME-Version: 1.0\n". "Content-Type: multipart/mixed; boundary=\"$boundary\"\n". @@ -222,6 +222,7 @@ $common_body. "--$boundary\n". "Content-Type: text/plain\n". + "Content-Disposition: attachment\n". "\n". "$diffmsg\n". "--$boundary--\n";