- handle long subject lines now
authorheiko
Thu, 21 Aug 2008 22:26:57 +0000
changeset 10 21b549d5c57b
parent 9 0943e8462f06
child 11 80890c874a90
- handle long subject lines now
debian/changelog
log.pl
--- a/debian/changelog	Wed Jan 16 14:42:22 2008 +0000
+++ b/debian/changelog	Thu Aug 21 22:26:57 2008 +0000
@@ -1,3 +1,9 @@
+logbuch (0.24) stable; urgency=low
+
+  * new upstream - long subject lines  
+
+ -- Heiko Schlittermann <heiko@schlittermann.de>  Fri, 22 Aug 2008 00:27:10 +0200
+
 logbuch (0.23-1) stable; urgency=low
 
   * new upstream
--- a/log.pl	Wed Jan 16 14:42:22 2008 +0000
+++ b/log.pl	Thu Aug 21 22:26:57 2008 +0000
@@ -169,8 +169,9 @@
 		or die "Can't create Mailer: $!\n";
 
 	    my $subject = (split /\n/, $text)[0];
-	    $subject =~ s/^\s*\S\s//;
-	    $subject = encode_qp("Service [". hostname(). "]: $subject");
+	    $subject =~ s/^\s*\S\s//;	# cut the "itemizer"
+	    $subject = encode_qp("Service [". hostname(). "]: $subject\n");
+	    $subject =~ s/\n(.)/\n\t\1/g;
 
 	    $mailer->open({
 		"To" => $mailto,