いろいろ
Seize the day.
2007-12-28 [長年日記]
■ [comp] Mew 3.3 + stunnel
というわけで [2007-12-03],正月休みを待たずに早速入れてみた.何も考えずに make && make install でおk.mew.el もそのまま使えている.いい感じだ.
stunnel に関しては,
(setq mew-smtp-ssl t) (setq mew-ssl-cert-directory "/usr/local/etc/stunnel/") (setq mew-prog-ssl "/usr/local/sbin/stunnel") (setq mew-smtp-user "username") (setq mew-smtp-server "smtp.example.org") (setq mew-smtp-ssl-port "465") (setq mew-ssl-verify-level 0) (setq mew-ssl-verify-version 0)みたいな感じでうまくいった.Mew 自身から stunnel で直接叩けるのは確かにありがたい.
ちなみに mew-ssl-verify-level と mew-ssl-verify-version を 0 にしないと,なぜか
(Cannot create to the SSL connection)が出るほか,*Mew Debug* でも
VERIFY ERRORが出てうまく接続できなかったので注意.
あと,mhc が mew-3.3 で廃止された関数 mew-match を使ってるせいでエラー吐いた.ので,やっつけで以下のように修正してみた (最新版を取って来れば済む話だけど,最新版の使い勝手があまり好きではないので).なぜかバイトコンパイルしたらエラーが出るので,そのまま使う.
--- mhc-mew.el.orig Mon Feb 18 19:46:44 2002
+++ mhc-mew.el Wed Dec 26 21:20:13 2007
@@ -50,6 +50,9 @@
(add-hook 'mew-virtual-mode-hook 'mhc-mode)
(add-hook 'mew-quit-hook 'mhc-exit))
+(if (fboundp 'mew-match)
+ (defalias 'mhc-mew/match-string 'mew-match)
+ (defalias 'mhc-mew/match-string 'match-string))
;; Backend methods:
@@ -260,7 +263,8 @@
(when (and ct (string-match "^multipart/" ct)
(or (string-match "boundary=\"\\([^\"]+\\)\"" ct)
(string-match "boundary=\\(.+\\)" ct)))
- (setq boundary (regexp-quote (mew-match 1 ct)))
+; (setq boundary (regexp-quote (mew-match 1 ct)))
+ (setq boundary (regexp-quote (mhc-mew/match-string 1 ct)))
(let ((case-fold-search nil))
(unless (and boundary
(re-search-forward (concat "^--" boundary "$") nil t)
@@ -365,9 +369,12 @@
(setq tmpstr (substring string (match-end 0)))
(setq ret (concat ret
(substring string 0 (match-beginning 0))
- (mew-header-decode (mew-match 1 string)
- (mew-match 2 string)
- (mew-match 3 string))))
+; (mew-header-decode (mew-match 1 string)
+; (mew-match 2 string)
+; (mew-match 3 string))))
+ (mew-header-decode (mhc-mew/match-string 1 string)
+ (mhc-mew/match-string 2 string)
+ (mhc-mew/match-string 3 string))))
(setq string tmpstr)))
ret))
関連記事:
- Mew 2.0 に移行してみる [2007-12-03]
- メール環境 over SSL (その 2: 古い Mew + stunnel) [2006-04-07]
- メール環境 over SSL (その 1: fetchmail で取って来る) [2006-04-06]
- Mew-4.2 の summary のカスタマイズ [2005-10-06]
- mew-4.2 で RPOP 認証 [2005-10-05]
[ ツッコミ | permalink | trackback ]
[TrackBack URL: http://nao.s164.xrea.com/td/tb.rb/20071228]
[(注) スパム対策のため,言及リンクのないトラックバックは受け付けていません.]
[(注) スパム対策のため,言及リンクのないトラックバックは受け付けていません.]
本日のリンク元
- はてなダイアリー: foodp さん ×5 : 4, 1
- はてなダイアリー: foodp さん (2006-04-07) ×1
- google 検索 (cache:CeBqW4btc_gJ:nao.s164.xrea.com/td/2006-04-07.html stone mew ssl) ×1
検索
- mew stunnel ×152 / stunnel mew ×103 / stunnel ×37 / mew ssl ×35 / stunnel エラー ×6 / stunnel verify ×6 / mew ssl stunnel ×5 / stunnel Mew ×5 / キーワード不明 ×4 / Mew stunnel ×4 / mew debug ×4 / meadow mew stunnel ×3 / mew-3.3 ×3 / stunnel make 失敗 ×3 / mew stunnel hosts ×3 / Mewとstunnel ×3 / mew エラー stunnel ×3 / SSL mew ×3 / mew smtp stunnel ×2 / mew SSL ×2 / mew ssl windows ×2 / mew meadow stunnel ×2 / SSL cannot verify ×2 / stunnel .mew.el ×2 / cert = /etc/stunnel/mail.crt ×2 / mew stunnel version ×2 / mew debug imap ×2 / stunnnel+mew ×2 / stunnel mew エラー ×2 / Mew SSL stunnel ×2 / mew-ssl-verify-version ×2 / Mew 5.1 stunnel ×1 / ssl-verify-version ×1 / stunnel 実行 エラー ×1 / mew stunnel windows ×1 / stunnel mew mew-ssl ×1 / mew stunnel smtp ×1 / mew-3.3 stunel ×1 / mew openssl stunnel ×1 / mew stunnel creating connection ×1 / stunnel SSL コネクション ×1 / stunnel "-version" mew ×1 / mewとstunnel ×1 / mew stunnel mew-ssl.el ×1 / Mew ssl stunnel cannot stop ×1 / stunnel makeできない ×1 / mew stunnel ssl ×1 / mew stunnel -D ×1 / stunnel mew cert ×1 / Mew stunnel」 ×1 / Mew version 3.3 ×1 / mew pkcs12 stunnel ×1 / stunnel イントラネット接続 ×1 / Stunnel ×1 / mew stunnel create ×1 / meadow stunnel ×1 / stunnel verify= ×1 / stunnel mew fedora ×1 / Mew 3.3 4.2 ×1 / mew ssl connection ×1 / Meadow mew stunnel エラー ×1 / stunnel fetchmail ×1 / stunnel mew prog ×1 / mew stunnel エラー ×1 / stunnel mew smtp ×1 / .mew.el xrea ×1 / mew-book-mhc.pdf ×1 / stunel mew ×1 / stunnel SSL コネクション error ×1 / mew ssl version ×1 / stunnel make ×1 / setq mew-ssl-verify-level ×1 / setq mew-prog-ssl ×1 / (re-search-forward (regexp-quote ×1 / Mew-3.3 ×1 / (Cannot create to the SSL connection) ×1 / .mew.el stunnel ×1 / Mew 3.3 ×1 / appfirewall mew stunnel ×1 / mew 3G b-mobile ×1 / mew-ssl-verify-level ×1 / stunnel iij4u mew ×1 / stunnel meadow ×1 / qrcode verifyerror QR Code Decoder ×1 / windows stunnel mew -V error ×1 / Mew Stunnel ×1 / mew エラー ×1 / mew stunnel win ×1 / mew windows stunnel ×1 / stunnel smtp mew ×1 / meadow mew ssl ×1 / stunnel "mew prog ssl " ×1 / stunnel windows mew ×1 / stunnel メールヘッダ ×1 / stunnel -windows ×1 / Mew ssl ×1 / mew-prog-ssl ×1 / mew ×1 / mew smtp yahoo ×1 / "-version": No error (0) stunnel ×1
以下の広告はサーバによって自動的に挿入されています.
Copyright © 2004-2006, nao. All rights reserved.





