mutt reply函数返回空头字段

时间:2013-07-07 23:21:36

标签: mutt

我一直在使用mutt已经有一段时间了但是我已经重新配置它以用于offlineimap。现在的问题是,当我回复电子邮件时,标题字段“To,From,CC Subject ...”留空,无法发送回复。我必须手工粘贴字段,这有点烦人(我们有什么计算机?)。

任何提示,因为我还没有弄清楚如何调试这个问题。

由于

我的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的结尾

2 个答案:

答案 0 :(得分:0)

允许mutt自动填充From:标题是通过添加:

完成的
set use_from = yes

到您的.muttrc并允许它自动填充To:和Subject:标题可以通过以下方式完成:

set fast_reply = yes
你的.muttrc中的

。这两个选项很常见,如果你没有它们,你应该考虑在线查看一些.muttrc配置,找到其他经典选项(noconfirmappend,reverse_alias,sort = threads等),这将大大改善你的笨蛋经验。

如果您使用“reply”命令而不是“group-reply”命令(默认键盘快捷键为g),则不会填写CC:标题。

答案 1 :(得分: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行输入我的回复,当我退出编辑器并到达撰写菜单时,回复字段会正确填充。