emacs 下比较好的邮件方案是什么

发邮件,你要配置下:

  (setq send-mail-function 'smtpmail-send-it
        smtpmail-stream-type 'starttls
        smtpmail-smtp-service 587
        smtpmail-auth-credentials "~/.authinfo"))

提示错误: smtpmail-send-it: Sending failed: 450 Requested mail action not taken: mailbox unavailable

地址、端口号这些对么?telnet试试看呢

Table of Contents

emacs 中 mu4e 的配置文件如下:

(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
(require 'mu4e)

(setq mu4e-drafts-folder "/[yahoo].Drafts")
(setq mu4e-sent-folder   "/[yahoo].Sent Mail")
(setq mu4e-trash-folder  "/[yahoo].Trash")

;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)

(setq mu4e-maildir-shortcuts
      '( ("/INBOX"               . ?i)
         ("/[yahoo].Sent Mail"   . ?s)
         ("/[yahoo].Trash"       . ?t)
         ("/[yahoo].All Mail"    . ?a)))

;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")

;; something about ourselves
(setq
 user-mail-address "[email protected]"
 user-full-name  "Gang Fu"
 mu4e-compose-signature
 (concat
  "Gang Fu\n"))

(require 'smtpmail)

(setq send-mail-function 'smtpmail-send-it
      smtpmail-stream-type 'starttls
      smtpmail-default-smtp-server "smtp.mail.yahoo.com"
      smtpmail-smtp-server "smtp.mail.yahoo.com"
      smtpmail-smtp-service 587
      smtpmail-auth-credentials "~/.authinfo")

~/.offlineimaprc 文件如下:

[general]
accounts = yahoo
maxsyncaccounts = 3

[Account yahoo]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Maildir

[Repository Remote]
type = IMAP
remotehost = imap.mail.yahoo.com
remoteuser = [email protected]
remotepass = XXXX
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
maxconnections = 1
realdelete = yes

发送文件出现 smtpmail-send-it: Sending failed: 450 Requested mail action not taken: mailbox unavailable

.authinfo的内容呢

我的方案,希望有帮助

1 个赞