git-imap-send: Support SSL
[gitweb.git] / git-send-email.perl
index 2e4a44ad29c923eb48c3136e768870e384df06c2..d2fd89907688a044ffe0d2520744e00a9b33c942 100755 (executable)
@@ -882,7 +882,7 @@ sub send_message
                                }
                                elsif (/^Content-type:/i) {
                                        $has_content_type = 1;
-                                       if (/charset="?[^ "]+/) {
+                                       if (/charset="?([^ "]+)/) {
                                                $body_encoding = $1;
                                        }
                                        push @xh, $_;