木村と申します。
自宅の二台のPCで
* 64bit版Windows 10 ver. 1809
* MSYS2を使って自前でビルドした64bit版Emacs 26.1
* MewのWindows用バイナリ MEW68W2.ZIP
* 64bit版Cygwinのstunnel 5.48
の組み合わせで、メールの送信とIMAPによるメールの受信が正常に出来ていた
のですが、このうち一台をディスク交換のためOSの再インストールと再セット
アップを行ったところ、そちらのPCではメールの送受信が出来なくなってしま
いました。
設定としては、.emacs及び.mew.elは全く同じものを使っており、関連すると
思われる設定は以下の通りです。
~/.emacs
----------------------------------------------------------------------
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
(autoload 'mew-user-agent-compose "mew" nil t)
(setq read-mail-command 'mew)
(if (boundp 'mail-user-agent)
(setq mail-user-agent 'mew-user-agent))
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent
'mew-user-agent
'mew-user-agent-compose
'mew-draft-send-message
'mew-draft-kill
'mew-send-hook))
----------------------------------------------------------------------
~/.mew.el
----------------------------------------------------------------------
(setq
mew-imap-server "
mail.home.utahime.org"
mew-imap-size 0
mew-imap-ssl t
mew-imap-ssl-port mew-imap-port
mew-imap-user mew-user
mew-proto "%"
mew-smtp-port "submission"
mew-smtp-server "
mail.home.utahime.org"
mew-smtp-ssl t
mew-smtp-ssl-port mew-smtp-port
mew-smtp-user mew-user
mew-ssl-cert-directory (substring
(shell-command-to-string
(concat "cygpath " (expand-file-name "~/.certs")))
0 -1)
)
----------------------------------------------------------------------
症状としては、メールの受信に関しては
01. Emacsを起動
02. M-x mewを実行
03. Mewのsplash画面が表示され、'Mew: %inbox'のバッファに切り替わる
04. "Type C-u Z to collect IMAP folders!"と表示される
05. C-u Zを実行
06. "Creating an SSL/TLS connection..."と表示される
07. その後Emacsが無反応になる
という状況で、またメールの送信に関しては↑の7の状態でC-gを叩いた後に
08. wを実行
09. 'Mew: +draft/1'のバッファに切り替わる
10. メールを作成
11. C-c C-cを実行
12. "Really send this message? (y or n) "に対してyを入力
13. "Creating an SSL/TLS connection..."と表示される
14. その後Emacsが無反応になる
という状況です。07及び14の状況において、タスクマネージャで確認すると
stunnel.exeのプロセスは存在するようですが、コマンドラインで
'netstat -a'を実行するとサーバへの接続はされていないようです。
OSの再インストールの前には普通に使えていたので、再インストール後にこん
なことになってしまって、原因も判らず大変困っているのですが、
* 設定のここがおかしいorこれが足りない
* Windowsのこの設定を確認しろ
* こういうことを試してみろor調べてみろ
といったことがありましたら、指摘していただけないでしょうか。
よろしくお願いいたします。
---
木村 康浩