[BACK]Return to patch-mew-ssl.el CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / mew / patches

File: [cvs.NetBSD.org] / pkgsrc / mail / mew / patches / Attic / patch-mew-ssl.el (download)

Revision 1.1, Mon Jul 11 14:54:38 2011 UTC (11 years, 4 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3

* Support stunnel-4.39, version detection is changed.
* bump PKGREVISION.

$NetBSD: patch-mew-ssl.el,v 1.1 2011/07/11 14:54:38 ryoon Exp $

* Support "stunnel -version" output of stunnel-4.39.

--- mew-ssl.el.orig	2009-01-21 05:54:58.000000000 +0000
+++ mew-ssl.el
@@ -260,7 +260,8 @@ A local port number can be obtained the 
     (with-temp-buffer
       (call-process mew-prog-ssl nil t nil "-version")
       (goto-char (point-min))
-      (if (looking-at "stunnel 4\\.\\([0-9]+\\)")
+      (re-search-forward "^stunnel " nil t 1)
+      (if (looking-at "4\\.\\([0-9]+\\)")
 	  (progn
 	    (setq mew-ssl-ver 4)
 	    (setq mew-ssl-minor-ver (string-to-number (mew-match-string 1))))