1

我使用 mutt 已经有一段时间了,但我已经重新配置它以与 offlineimap 一起使用。现在的问题是,当我回复电子邮件时,标题字段“收件人、发件人、抄送主题...”为空,无法发送回复。我必须手动粘贴这些字段,这有点烦人(我们有电脑做什么?)。

任何提示,因为我不知道如何调试这个问题。

谢谢

我的 muttrc

==================================================== ====

   # Boring details 
set realname = "Ivo Keel"
 
set from = "<myid>@gmail.com" 
set use_from = yes
    # fills headers on reply 
set fast_reply = yes 
set envelope_from ="yes"
    
    # Check for new mail in the folders 
set mail_check=60 # mutt checks for new mails on every keystroke
                      # but not more often then once in 5 seconds 
set beep_new = yes

    
    # Use a signature 
set signature="~/.signature"
    
    # mailcap 
set mailcap_path="~/.config/mutt/mailcap"
    
    # Use msmtp rather than sendmail. Check that
    # the path is correct for your system: 
set sendmail="/usr/bin/msmtp"
    
    # If not set in ~/.bashrc: 
set spoolfile = "~/.maildir/" 
set print_command="/usr/bin/muttprint %s" 
set print_split set print="yes" 
set sleep_time = 0 
set reply_to = yes
    #======================================================#
    # Folders
    
   set mbox_type=Maildir
    #set mbox="~/.maildir/" 
set folder="~/.maildir/" # Local mailboxes stored here 
mailboxes =c32t/inbox =hibury/inbox =inbox 
set record="+/hibury/sent/" # Where to store sent messages 
set postponed="+/hibury/drafts/" # Where to store draft messages
    #set move=no # Don't move mail from spool 
set mask="!^\\.[^.]"
    
    
    
    #======================================================#
    # What to show and order of headers 
ignore * 
unignore Date: From: User-Agent: \
             Cc: Reply-To: Subject: Mail-Followup-To: 
hdr_order Date From Subject To CC
    
set sort=threads 
set sort_browser=reverse-date 
set sort_aux=reverse-last-date-received
    #======================================================#
    # which editor do you want to use?
    # vim of course! 
set editor="vim" 
set edit_headers=yes # See the headers when editing
    
    #======================================================#
    # Aliases
    
set alias_file = ~/.config/mutt/alias # In their own file 
source ~/.config/mutt/alias # Source them 
set sort_alias=alias # Sort alphabetically
    
    
    # Odds and ends
    
set markers # mark wrapped lines of text in the pager with a + 
set smart_wrap # Don't wrap mid-word 
set pager_context=5 # Retain 5 lines of previous page when scrolling. 
set status_on_top # Status bar on top. 
push <show-version> # Shows mutt version at startup
    
set duplicate_threads = yes
    
    #email addresses with esc-1 and esc-2. Sets the status bar at the
    # top too so you know which from address you're using 
set mailcap_path = ~/.config/mutt/mailcap auto_view text/html
    
 

set query_command="abook --mutt-query '%s'"
    
    
    # Pager View Options --------------------------------- 
set pager_index_lines = 10 # number of index lines to show 
set pager_context = 3 # number of context lines to show 
set pager_stop # don't go to next message automatically 
set menu_scroll # scroll in menus 
set tilde # show tildes like in vim 
unset markers # no ugly plus signs
    
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" 
alternative_order text/plain text/enriched text/html 
bind pager R group-reply
    # View attachments properly. 
bind attach <return> view-mailcap
    
    #Skip some options 
set include=yes 
set forward_quote=yes 
set copy=yes 
set delete=yes 
set confirmappend=no
    
    #--------------------------------------------------------------------------
    # Other configuration files
    #--------------------------------------------------------------------------
    #source ~/.config/mutt/account_hooks
    #source ~/.config/mutt/folder_hooks 
source ~/.config/mutt/colors 
source ~/.config/mutt/sidebar
    #source ~/.config/mutt/gpg 
source ~/.config/mutt/macros 
source ~/.config/mutt/lists 
source ~/.config/mutt/alias

muttrc 结束

4

2 回答 2

0

我遇到了这个问题,但事实证明这是我的工作流程(位于键盘和椅子之间的错误系统)的问题。也许这也是你的问题?

当我在 Mutt 中回复消息时,Mutt 会将我放入一个带有预先填充的回复标题的文本编辑器会话中,如下所示:

1:  From: Steve HHH <steve@hhhdomain.com>
2:  To: Jonny Appleseed <jonny@hhhdomain.com>
3:  Cc:
4:  Bcc:
5:  Subject: Re: Good morning
6:  Reply-To:
7:  In-Reply-To: <CABSQ23i=yOa3GUwvbUPmHE+_i1_gLw@mail.gmail.com>
8: 
9:  On Mon, Sep 29, 2014 at 11:52:04AM -0700, Jonny Appleseed wrote:
10: > LOL

我的错误是在第一行开始输入回复。Mutt 需要第 1-7 行的这些标题(以及第 8 行的换行符?)以保持原样。如果我在第 9 行输入我的回复,当我退出编辑器并到达 Compose 菜单时,回复字段会正确填充。

于 2014-09-29T22:52:37.410 回答
0

Allowing mutt to automatically fill the From: header is done by adding:

set use_from = yes

to your .muttrc and allowing it to automatically fill the To: and Subject: header can be done by putting:

set fast_reply = yes

in your .muttrc. Those two options are very common, if you don't have them, you should consider looking at some of the .muttrc configurations available online to find other classical options (noconfirmappend, reverse_alias, sort=threads, etc.) which will greatly improve your mutt experience.

The CC: header will not be filled if you use the "reply" command instead of the "group-reply" one (the default keyboard shortcut is g).

于 2013-07-08T06:05:12.700 回答