emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RMAIL, rmail-mbox-branch


From: Alexander Pohoyda
Subject: Re: RMAIL, rmail-mbox-branch
Date: 22 Oct 2003 22:26:09 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Problems I have encountered so far:

1) If RMAIL file does not exist, rmail-display-labels function fails
deep inside rmaildesc.el and I dont see a reason to display labels if
there are no messages.

Proposed solution:
Index: rmail.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/mail/rmail.el,v
retrieving revision 1.368.2.5
diff -u -r1.368.2.5 rmail.el
--- rmail.el    23 Feb 2003 00:33:25 -0000      1.368.2.5
+++ rmail.el    22 Oct 2003 19:42:05 -0000
@@ -2458,7 +2460,6 @@
       ;; out of the Rmail file so as not to break other mail agents.
       (progn
         (message "No messages to show.  Add something better soon.")
-        (rmail-display-labels)
         (force-mode-line-update))
 
     ;; There are messages.  Show one.


2) rmail-use-spam-filter is void variable, used in rmail-get-new-mail
   function. It is defined in rmail-spam-filter.el, but we cannot
   (require 'rmail-spam-filter) before the rmail-mode-map variable is
   defined further in rmail.el file.

   I'm not sure what is a right way to fix this.


3) Deleting the last message makes rmail-summary-goto-msg to call
   itself recursively in a dead loop.

Proposed solution:
Index: rmailsum.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/mail/rmailsum.el,v
retrieving revision 1.127.2.2
diff -u -r1.127.2.2 rmailsum.el
--- rmailsum.el 18 Feb 2003 16:47:23 -0000      1.127.2.2
+++ rmailsum.el 22 Oct 2003 20:22:17 -0000
@@ -1081,7 +1081,8 @@
       (if (< n 1)
          (progn (message "No preceding message")
                 (setq n 1)))
-      (if (> n total)
+      (if (and (> n total)
+              (> total 0))
          (progn (message "No following message")
                 (goto-char (point-max))
                 (rmail-summary-goto-msg nil nowarn skip-rmail)))


-- 
Alexander Pohoyda <address@hidden>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44




reply via email to

[Prev in Thread] Current Thread [Next in Thread]