LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 916|回复: 1

emacs with mew

[复制链接]
发表于 2009-1-17 11:45:10 | 显示全部楼层 |阅读模式
有用emacs收发邮件的吗?我用的是mew这个软件,发现无法发信,只能收信。
下面是我的mew配置项:
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
(if (boundp 'read-mail-command)
      (setq read-mail-command 'mew))
(autoload 'mew-user-agent-compose "mew" nil t)
(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))
(setq mew-pop-size 0)
(setq mew-smtp-auth-list nil)
(setq toolbar-mail-reader 'Mew)
(set-default 'mew-decode-quoted 't)
(setq mew-prog-pgp "gpg")
(setq mew-name "zxsu")
(setq mew-user "suzh1984")
(setq mew-smtp-user "suzh1984")
(setq mew-mail-domain "163.com")
(setq mew-smtp-auth-list nil)
(setq mew-smtp-server "smtp.163.com")
(setq mew-pop-server "pop.163.com")
(setq mew-pop-user "suzh1984")
(setq mew-pop-auth 'pass)
(setq mew-use-cached-passwd t)
(setq mew-icon-directory (expand-file-name "mew/etc" dtsite-dir))
(when (boundp 'utf-translate-cjk)
        (setq utf-translate-cjk t)
              (custom-set-variables
                         '(utf-translate-cjk t)))
(if (fboundp 'utf-translate-cjk-mode)
      (utf-translate-cjk-mode 1))
发表于 2009-1-18 05:52:15 | 显示全部楼层
In my experience, we have 2 ways to solve the problem,
1st, try to send mail from your own mail service, such as sendmail

add the following to the .mew.el
("inria"
         ("mailbox-type" . pop)
         ("pop-ssl" . t)
         ("proto" . "+")
         ("pop-server" . "xxx.xxx.xx")
         ("name" . " ") ;; to be completed
         ("user" . " ") ;; to be completed
         ("smtp-server" . "localhost")
         ("pop-user" . " ") ;; to be completed
         ("mail-domain" . "xx.xx")
         ("inbox-folder" . "+inbox")
          ("pop-delete" . nil)
         )
2nd
for the 163.com, you can do same thing as follows, change gmail to 163.com. But you need to check the SSL

         ;; pop settings
         ("pop-server"                 . "pop.gmail.com")         
         ("pop-user"                   . "xxx.com")
         ("pop-auth"                   . pass)  ;; authentication with USER/PASS (i.e. plain password)
         ("pop-delete"                 . t)     ;; for testing, do not delete the msg on the pop
         ("pop-size"                   . 0)     ;; The limit size of messages to be retrieved by POP
         ("pop-ssl"                    . t)
         ("pop-ssl-port"               . "995(check the 163 code)") ;; use default value
         ("ssl-cert-directory"         . "~/.certs");;not quite sure whether needed by 163
         ("ssl-verify-level"           . 0)     ;; do not verify, otherwise the connect can't create





Post by zpcat;1939042
有用emacs收发邮件的吗?我用的是mew这个软件,发现无法发信,只能收信。
下面是我的mew配置项:
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
(if (boundp 'read-mail-command)
      (setq read-mail-command 'mew))
(autoload 'mew-user-agent-compose "mew" nil t)
(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))
(mode)
      (utf-translate-cjk-mode 1))
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表