Emacs Gnus 接收邮件(无)序

3
多年来我都没有用Emacs 发送电子邮件。我一直认为这是一个非常复杂的系统(更不用说电子邮件本身就是一个过于繁琐的通讯方式了,但这是另一个问题)。现在,我第一次使用Gnus 并将其连接到GMail 时,收件箱中出现的电子邮件没有按照顺序排列。例如,两年前的一封信出现在列表的顶部,其后是上周的另一封信,而今天收到的一堆消息根本没有载入。
不幸的是,我对我的X服务器进行了太多的实验...... 我需要掩盖它不能启动的时间... :)
我怀疑选定这些消息可能会受到GMail 的“状态”或某种优先级的影响,而这个机器人似乎分配给这些消息是错误的。如果我的猜测正确,是否可以覆盖此行为以按接收顺序加载消息?这将对我有很大帮助。提前感谢您的帮助!
我放弃编辑的地方更靠近中间,但是,从结尾开始阅读,您会在我放弃之前了解到要点:
!. [   8: ***********            ] *****, *****!!! check this out(:  # Can't even find this...
 . [   0: ***********            ]                                 
!. [  19: ***********            ] Re: Hello ****. Nice to meet you
 . [ 162: Twitter                ] ******, ***** ******, and 2 othe 
 . [  38: Vimeo                  ] Welcome to Vimeo!                  # Almost two years ago
!. [  25: ***********            ] Re: Do you use haxe-mode still?  
!. [  58: ***************        ] Re: wvxvw (*****) from lispforum
!. [  26: *************          ] Re: bug#11813: Segmentation fault
 . [ 174: Open Spoon Foundation  ] Apache Flex Community Revue July 
!. [  72: *************          ] Re: bug#11850: crash (null font)   # Second newest        (1)
!. [  42: *************          ] Re: bug#11813: bug#11850: crash (  # Received a month ago
!.     <  17: ***********           > 
!. [  25: ACM International Confe] ICFP Programming Contest: one wee
!. [  19: ACM International Confe] Message to attendees of ICFP 2012
!. [  57: ***************        ] Probably no one else for ICFP    
!. [  61: ************           ] Re: bug#11850: bug#11813: bug#118
 . [  55: ********** via LinkedIn] ת מעצב למישהו עם שנה ניסיון ומעלה
!. [   5: ***************        ] Be wary of Dropbox and git repos
 . [  14: ACM International Confe] Task Details for ICFP 2012 Progra  # 
 . [  26: ACM International Confe] How to contact us during the Cont
 . [  14: ACM International Confe] Submission
 . [  15: ACM International Confe] Lightning Division Entry MD5 Keys
 . [  14: ACM International Confe] Underground growths
 . [  15: ACM International Confe] More Lambdas
 . [  19: ***************        ] Re: [CLSQL] OUTER JOIN             # This actually arrived before
 . [  28: ***************        ] [CLSQL] Problem with clsql-mysql.d # the patch.
 .     [  30: ************           ]                                #
 .         [  36: ***************        ]                            #                           
!. [   2: Unblock Review Team    ] Response to your unblock appeal    # They blocked me instead of 
                                                                      # some other dude!                          
 . [  15: CouchSurfing           ] We miss you on CouchSurfing!       # Stopped counting :)
------------------- missing 1 message here  ---------------------------------------------------------
 . [  18: ****************       ] [CLSQL] [PATCH] Clisp portability
------------------- missing 1 message here  ---------------------------------------------------------
 . [  33: ***************        ] Re: [CLSQL] CLSQL Digest, Vol 56,                        
 . [  23: ***************        ] [CLSQL] Newbie troubles with the t                      
 .     [  52: ********           ]                                     
------------------- missing 5 messages here ---------------------------------------------------------
!. [  20: agent.ruby@amd.com     ] AMD Game subscription update.                                  
 . [  29: *********              ] Re: hey (******)                    # This is the 57'th newest (11)
 .     [  34: *****              ]                                     # This message has 12 more 
                                                                       # responses
------------------- missing 25 messages here --------------------------------------------------------
 . [  91: Glassdoor              ] Lots of new jobs on Glassdoor - ma     
!. [  21: ***************        ] Hi there                            # This is the 32'th newest (10)
------------------- missing 7 messages here ---------------------------------------------------------
 . [  17: **********             ] [CLSQL] Postmodern changes affecti  # Received about a year ago
 .     [  32: ********           ]                                     # 
 . [  98: **********             ] [CLSQL] clsql on cmucl under 64 bi  # This is the 25'th newest (9)
------------------- missing 5 messages here ---------------------------------------------------------
 . [  10: Coursera               ] Welcome to Coursera!                # This is the 19'th newest (7)
 . [   1: Machine Learning | Cour] Welcome to Machine Learning!        # This is the 20'th newest (8)
------------------- missing 3 messages here ---------------------------------------------------------
 . [ 146: Jobmaster.co.il        ] כוז הצעות עבודה לתאריך: 22/08/2012  # This is the 16'th newest (6)
------------------- missing 5 messages here ---------------------------------------------------------   
 . [  49: <***************@mail.r] [CLSQL] CLSQL on ECL                # This is the 11'th newest (5) 
------------------- missing 2 messages here ---------------------------------------------------------                    
 . [  41: Mail Delivery Subsystem] Delivery Status Notification (Fail
------------------- missing 1 message here  ---------------------------------------------------------
 . [ 148: Jobmaster.co.il        ] כוז הצעות עבודה לתאריך: 23/08/2012  # This is the 6'th newest  (4)
 . [  87: Udacity                ] Udacity Newsletter - August 2012    # This is the 5'th newest  (3)
------------------- missing 2 messages here ---------------------------------------------------------
 . [  17: ************           ] call today                          # This is the newest       (0)

编辑

今天我尝试使用Alpine邮件代理程序,以查看这是否与Gmail提供邮件的方式有关,但是很抱歉,这是Gnus的问题,或者是我的配置问题。以下是大致相同时间段、通过Alpine检索到的同一邮箱的列表:

    2004 Aug 13     Nisha Hitech                   (15K) Nisha Group - Recruitment & Placement
    2005 Aug 14     ***** *********** via LinkedIn (13K) Join my network on LinkedIn
  N 2006 Aug 14     Glassdoor                      (34K) Lots of new jobs on Glassdoor - maybe
    2007 Aug 16     ***** ******                    (4K) Re: bug#11850: bug#11813: bug#11850: 
*   2008 Aug 16     ***** *********                 (4K) Hi there
    2009 Aug 16     ****** ****                     (2M) Quiz - stuff
    2010 Aug 16     ****** ****                    (.6M) XML
    2011 Aug 17     ****** ****                     (1M) Updated quiz
  N 2012 Aug 17     **** *****                      (7K) [CLSQL] Postmodern changes affecting 
  N 2013 Aug 17     **** *******                    (6K) Re: [CLSQL] Postmodern changes affect
    2014 Aug 17     ****** ****                     (1M) Adjustments
    2015 Aug 17     ****** ****                    (17K) Re: Adjustments
    2016 Aug 18     ****** ****                     (1M) Updated
    2017 Aug 18     Sampler                         (9K) Error
    2018 Aug 18     ****** ****                    (.5M) Score
    2019 Aug 18     ****** ****                    (17K) Re: Score
    2020 Aug 19     donotreply@hunterhrms.com       (2K) Thank you for your CV
    2021 Aug 19     **** ******- Hiway             (18K) בהמשך לשיחתנו
    2022 Aug 19     ****** *****                   (62K) חבר ITR-משרות פיתוח פלאש
    2023 Aug 19     **** ******- Hiway             (19K) RE: בהמשך לשיחתנו
    2024 Aug 19     ***** *********                (15K) Re: Hi there
    2025 Aug 19     *** *******                     (2K) flash
    2026 Aug 19     *** *******                     (2K) sent you an email on other address
    2027 Aug 19     *** *******                     (4K) Re: sent you an email on other addres
    2028 Aug 20     ****** ****                     (8K) Fwd: Machine Learning is now live!
    2029 Aug 20     service@paypal.co.il           (10K) How to reset your PayPal password
    2030 Aug 20     service@paypal.co.il            (9K) You just changed your password
    2031 Aug 20     service@paypal.co.il            (8K) You linked your bank account to your 
    2032 Aug 20     ****** ****                     (3K) Re: Machine Learning is now live!
    2033 Aug 20     NCsoft Support                  (3K) Verify your e-mail address for your N
    2034 Aug 20     NCsoft Support                  (4K) Thank you for creating a new NCsoft M
  N 2035 Aug 20     ***** ****                     (10K) [CLSQL] clsql on cmucl under 64 bit u
    2036 Aug 20     *** *. via LinkedIn            (13K) Join my network on LinkedIn
    2037 Tuesday    Reggae                          (3K) Re: Machine Learning is now live!
  N 2038 Tuesday    Machine Learning | Coursera St  (3K) Welcome to Machine Learning!
  N 2039 Tuesday    Coursera                        (4K) Welcome to Coursera!
    2040 Tuesday    *** ******** via LinkedIn       (6K) nice meeting you
    2041 Tuesday    *** ********                    (9K) RE: Join my network on LinkedIn
    2042 Tuesday    *** ********                    (3K) RE: Join my network on LinkedIn
    2043 Tuesday    הסוכן החכם של ג'ובנט           (32K) דרוש/ה GUI FLEX Architect
    2044 Aug 19     ***** ******                    (5K) Carambola - ****
    2045 Wednesday  **** *****                      (1K) Re: Carambola - ****
    2046 Wednesday  *** ********                    (4K) RE: Join my network on LinkedIn
    2047 Wednesday  ***** ******                    (5K) Re: Carambola - ****
    2048 Wednesday  *** ********                    (4K) RE: Join my network on LinkedIn
  N 2049 Thursday   Jobmaster.co.il                (16K) ריכוז הצעות עבודה לתאריך: 22/08/2012
    2050 Thursday   ***** ******                   (17K) Re: Carambola - ****
  N 2051 Thursday   ***************@mail.ru         (7K) [CLSQL] CLSQL on ECL
    2052 Thursday   web-admin@winehq.org            (2K) Welcome to "WineHQ Forums"
    2053 Thursday   web-admin@winehq.org            (2K) Topic approved - "OpenGL renderer isn
  N 2054 Thursday   Mail Delivery Subsystem         (3K) Delivery Status Notification (Failure
    2055 Thursday   web-admin@winehq.org            (2K) Post approved - "Re: OpenGL renderer 
  N 2056 Friday     Jobmaster.co.il                (16K) ריכוז הצעות עבודה לתאריך: 23/08/2012
  N 2057 Thursday   Udacity                        (28K) Udacity Newsletter - August 2012
    2058 Friday     ggtse@gigabyte.com.tw           (5K) GIGABYTE Tech. Support Reply Notifica
    2059 Friday     web-admin@winehq.org            (2K) Post approved - "Re: OpenGL renderer 
    2060 Yesterday  ***** ******                    (5K) Re: bug#11850: bug#11813: bug#11850: 
    2061 Yesterday  *** ********                    (4K) call today
2个回答

2

邮件的排序顺序由服务器(Gmail)控制,而不是Emacs/Gnus。我猜想在优化大量邮件的服务器时,Google打破了传统,文章编号不再按顺序分配。唯一的解决方法是下载所有标头,以便Gnus可以根据日期或您的偏好进行排序。如果您的收件箱中有很多邮件,您可能需要先清理它。


1
请查看 Gnus 手册中的 this page。基本上,Gnus 默认按文章编号排序。对我来说,这几乎总是按日期顺序排列,但你的 GMail 邮件可能发生了一些奇怪的事情 - 也许你从另一个邮件服务器导入它们了?(我不知道 - 我只是猜测)
无论如何,我猜您想要类似下面这样的东西:
(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-number
        gnus-thread-sort-by-date))

请注意,这假定您正在使用线程显示(这是默认设置,也可能是您想要的)。如果不是,请参考我链接到的页面进行相应修改。

我必须说,Gnus 手册实际上相当易读(有时还很有趣——看看“Emacs for Heathens”部分)。我经常无意间阅读随机页面,并通过此方式学到了很多东西... - Rupert Swarbrick
啊,我明白了。从你的问题中并不清楚。我想你的意思是当你进入一个组时,会被问到要获取多少个标题?然后你必须猜测,并且没有关联性可以在获取邮件日期和它们的顺序之间建立。我认为没有什么 Gnus 或任何其他客户端可以在不将所有标题存储在本地的情况下解决这个问题:我认为 IMAP 协议通过消息编号进行处理。 - Rupert Swarbrick
请注意,当消息被删除时,消息编号不会重新使用。因此,您可以在“有多少条消息?”的问题中回答“1000”,最终得到的消息数量要少得多。另一个解决方案是搜索:我倾向于在组上使用“G G”按名称/主题搜索。实际上,我使用GMail几乎不保留收件箱中的任何内容。我可能想稍后查找的东西会保存在“所有邮件”文件夹中,并可通过“G G”进行搜索。 - Rupert Swarbrick
1
不知道,但那是 Gmail 的问题,而不是 Gnus 的问题 - 服务器选择消息编号,而不是客户端。 - Rupert Swarbrick
我想确认自己没有说错话,于是查阅了 IMAP4 规范。基本上,问题就在于 FETCH 命令(规范中的6.4.5节)需要一个邮件 ID 列表,因此客户端也没有更明智的选择。 - Rupert Swarbrick

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接