首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mutt函数返回空头字段

mutt函数返回空头字段
EN

Stack Overflow用户
提问于 2013-07-08 07:21:36
回答 2查看 854关注 0票数 1

我已经使用mutt很长一段时间了,但我已经将它重新配置为与offlineimap一起使用。现在的问题是,当我回复一封电子邮件时,标题字段“收件人、发件人、抄送主题...”保留为空,并且不可能发送回复。我必须手工粘贴字段,这有点烦人(我们有计算机是做什么的?)。

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

谢谢

我的muttrc

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

代码语言:javascript
复制
   # 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结束

EN

回答 2

Stack Overflow用户

发布于 2013-07-08 14:05:13

允许mutt自动填充From:标头的方法是添加:

代码语言:javascript
复制
set use_from = yes

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

代码语言:javascript
复制
set fast_reply = yes

在你的.muttrc里。这两个选项非常常见,如果您没有这两个选项,您应该考虑查看在线提供的一些.muttrc配置,以找到其他经典选项(noconfirmappend、reverse_alias、sort=threads等)这将极大地改善您的狗的经验。

如果您使用“回复”命令而不是“组回复”命令(默认键盘快捷键是g),CC:头将不会被填充。

票数 0
EN

Stack Overflow用户

发布于 2014-09-30 06:52:37

我遇到了这个问题,但它被证明是我的工作流程(键盘和椅子之间的buggy系统)的问题。也许这也是你的问题?

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

代码语言:javascript
复制
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行的换行符?)保持完好无损。如果我在第九行输入我的回复,当我退出编辑器并到达Compose菜单时,回复字段将被正确填充。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17517359

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档