[Xfce4-commits] <exo:xfce-4.8> Make exo-compose-mail-1 case-insensitive (bug #7472).

Nick Schermer noreply at xfce.org
Mon May 9 19:56:08 CEST 2011


Updating branch refs/heads/xfce-4.8
         to 07261b8e3c72040ecad383a78645cc3d0384a026 (commit)
       from 82db87966aac072ab5516fbc025a33c994c487f4 (commit)

commit 07261b8e3c72040ecad383a78645cc3d0384a026
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Apr 16 11:39:07 2011 +0200

    Make exo-compose-mail-1 case-insensitive (bug #7472).
    
    (cherry picked from commit 21503abb471f2c0539cbe2782c079a7b7c6e2f5d)

 exo-helper/helpers/exo-compose-mail-1 |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/exo-helper/helpers/exo-compose-mail-1 b/exo-helper/helpers/exo-compose-mail-1
index 3cc502e..5e7564f 100755
--- a/exo-helper/helpers/exo-compose-mail-1
+++ b/exo-helper/helpers/exo-compose-mail-1
@@ -47,19 +47,19 @@ my @attachments = ();
 # parse the mailto:-address
 my @headers = $mailtoUrl->headers();
 for (my $n = 0; $n < $#headers; $n += 2) {
-	if ($headers[$n] eq 'to') {
+	if ($headers[$n] =~ /^to$/i) {
 		push (@to, $headers[$n + 1]);
 	}
-	elsif ($headers[$n] eq 'cc') {
+	elsif ($headers[$n] =~ /^cc$/i ) {
 		push (@cc, $headers[$n + 1]);
 	}
-	elsif ($headers[$n] eq 'subject') {
+	elsif ($headers[$n] =~ /^subject$/i ) {
 		$subject = $headers[$n + 1];
 	}
-	elsif ($headers[$n] eq 'body') {
+	elsif ($headers[$n] =~ /^body$/i ) {
 		$body = $headers[$n + 1];
 	}
-	elsif ($headers[$n] eq 'attach') {
+	elsif ($headers[$n] =~ /^attach$/i ) {
 		# be sure to add as file:-URI
 		my $f = $headers[$n + 1];
 		push(@attachments, ($f =~ m/^file:\//) ? URI->new($f) : URI::file->new_abs($f));



More information about the Xfce4-commits mailing list