all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Gnus with Emacs 23: gnus-gcc-mark-as-read not working anymore
Date: Tue, 29 Sep 2009 23:33:53 +0200	[thread overview]
Message-ID: <878wfx1lmm.fsf@arcor.de> (raw)
In-Reply-To: 87my4d51iq.fsf@usenet.my.skamphausen.de

Stefan Kamphausen <skampi@gmx.net> writes:
> David Engster <deng@randomsample.de> writes:
>>>> This was introduced because of a problem with nnimap as primary mail
>>>> backend. See
>>>>
>>>> http://thread.gmane.org/gmane.emacs.gnus.general/67932
>>>>
>>>> Do you use nnml as your primary back end?
>>>
>>> Yes

> I could narrow the problem down to line 1685 in gnus-msg.el:
>
> 		(setq group (gnus-group-short-name group)))
>
> since gnus-group-short-name strips the nnml-prefix.  I just evaluated
> the gnus-inews-do-gcc defun found in Emacs 22.3 and then everything
> worked as expected.

OK, I tested this with Emacs 23.1/Gnus v5.13 with the following minimal
.gnus.el:

(setq gnus-select-method '(nnml ""))
(setq gnus-message-archive-group
      '((cond ((message-news-p)
               "nnml:saved-news")
              (t
               (list
                "nnml:mail.office.all"
                (format-time-string "nnml:mail.%Y-%m") )))))
(setq gnus-gcc-mark-as-read t)

It works for me. I get the following GCC header

Gcc: nnml:mail.office.all nnml:mail.2009-09

and when I send mail, it is marked as read and doesn't show up when I
hit 'g'.

In fact, when I comment out the call to gnus-group-short-name, it does
not work anymore and I get a new article in both groups.

I don't know why you're seeing the exact opposite behavior. Please check
if the articles actually get marked as read. You can do this by
evaluating first

(gnus-active "mail.office.all")

which will give you the lowest and highest article number, and

(gnus-info-read (gnus-get-info "mail.office.all"))

which will give you the range of read articles. You should get something
like (1 . 10) and ((1 . 10)), resp., with '10' being the highest article
number in my case.

Then send a message and immediately evaluate the above again. It should
be something like (1 . 11) and ((1 . 11)).

Regards,
David





  reply	other threads:[~2009-09-29 21:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21  8:06 Gnus with Emacs 23: gnus-gcc-mark-as-read not working anymore Stefan Kamphausen
2009-09-22  7:49 ` Stefan Kamphausen
2009-09-28 15:50   ` Stefan Kamphausen
2009-09-28 18:25     ` David Engster
     [not found]     ` <mailman.7657.1254162498.2239.help-gnu-emacs@gnu.org>
2009-09-29 11:28       ` Stefan Kamphausen
2009-09-29 12:00         ` David Engster
     [not found]         ` <mailman.7691.1254225675.2239.help-gnu-emacs@gnu.org>
2009-09-29 13:22           ` Stefan Kamphausen
2009-09-29 21:33             ` David Engster [this message]
     [not found]             ` <mailman.7717.1254260069.2239.help-gnu-emacs@gnu.org>
2009-10-02 14:53               ` Stefan Kamphausen
2009-10-05 15:14                 ` David Engster
     [not found]                 ` <mailman.8078.1254756146.2239.help-gnu-emacs@gnu.org>
2009-10-06 11:24                   ` Stefan Kamphausen

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=878wfx1lmm.fsf@arcor.de \
    --to=deng@randomsample.de \
    --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.