all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dr Rainer Woitok <rainer.woitok@gmail.com>
To: Help-Gnu-Emacs@Gnu.Org
Subject: Another "Rmail" problem I ran into
Date: Sun, 09 Jun 2024 18:19:13 +0200	[thread overview]
Message-ID: <6665d602.170a0220.5862e.c401@mx.google.com> (raw)

Greetings,

because sometimes  Google sends  some reply mail  to my inbox  before it
sends the corresponding original mail, I added the following lines to my
"Rmail" configuration file:

   (defun Sort-Date ()
    "Sort incoming mail by date."
    (rmail-summary-sort-by-date nil))

   (add-hook 'rmail-get-new-mail-hook 'Sort-Date)

But this leads  to either  the summary  or the message buffer  not being
displayed, and in buffer "*Messages*" I find

   Getting mail from /home/rainer/mail/.HAM...
   Counting new messages...done (1)
   Finding sort keys...30
   Reordering messages...30
   Counting messages...done
   Computing summary lines...done
   rmail-show-message: Wrong type argument: stringp, nil

Just in case it matters: including the one new message there are 39 mes-
sages in the summary buffer,  so why does "Rmail" only process 30 messa-
ges?

When I again comment out the "add-hook" line above and restart "Rmail",
everything works again (well, except for the sorting of course).

What's going wrong here?

Sincerely,
  Rainer



             reply	other threads:[~2024-06-09 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-09 16:19 Dr Rainer Woitok [this message]
2024-06-09 16:47 ` Another "Rmail" problem I ran into Eli Zaretskii
2024-06-10 15:32   ` Dr Rainer Woitok
2024-06-10 16:10     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6665d602.170a0220.5862e.c401@mx.google.com \
    --to=rainer.woitok@gmail.com \
    --cc=Help-Gnu-Emacs@Gnu.Org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.