Gnus development mailing list
 help / color / mirror / Atom feed
* Expiring and keeping marks
@ 2002-10-03 12:03 Jorge Godoy
  2002-10-03 15:00 ` Mike Woolley
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jorge Godoy @ 2002-10-03 12:03 UTC (permalink / raw)



Hi,


I use expire to move messages from one folder to another that will
have a backup on CD. The problem is that when a message is expired, it
looses all its marks (specially the read mark), making the folder
appear on the list with unread messages. OK, I can press "c" on that
folder and have all messages marked as read, but it would be much
better if I had to do nothing. 

Is there some way to do that?

-- 
Godoy.     <godoy@ieee.org>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-10-03 12:03 Expiring and keeping marks Jorge Godoy
@ 2002-10-03 15:00 ` Mike Woolley
  2002-10-03 15:30   ` Kai Großjohann
  2002-12-29 15:27 ` Lars Magne Ingebrigtsen
  2002-12-31  9:05 ` Mike Woolley
  2 siblings, 1 reply; 12+ messages in thread
From: Mike Woolley @ 2002-10-03 15:00 UTC (permalink / raw)


Jorge Godoy <godoy@ieee.org> writes:

> I use expire to move messages from one folder to another that will
> have a backup on CD. The problem is that when a message is expired, it
> looses all its marks (specially the read mark), making the folder
> appear on the list with unread messages. OK, I can press "c" on that
> folder and have all messages marked as read, but it would be much
> better if I had to do nothing. 
> 
> Is there some way to do that?

I posed the same question on the 27th Sept, but unfortunately didn't
get any replies :-)

I'm glad it's not just me who wants to do this...

I had a look at the code (which is in the function
`nnmail-expiry-target-group') and it just deletes the mails from the
group and then adds them to the expiry-target group, which is why they
appear as unread with none of the original marks. Unfortunately, it
wasn't obvious to me how to change it to copy the marks over though...

Cheers,
Mike




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-10-03 15:00 ` Mike Woolley
@ 2002-10-03 15:30   ` Kai Großjohann
  2002-10-03 17:45     ` Jorge Godoy
  0 siblings, 1 reply; 12+ messages in thread
From: Kai Großjohann @ 2002-10-03 15:30 UTC (permalink / raw)


Mike Woolley <mike@ariel.co.uk> writes:

> I had a look at the code (which is in the function
> `nnmail-expiry-target-group') and it just deletes the mails from the
> group and then adds them to the expiry-target group, which is why they
> appear as unread with none of the original marks. Unfortunately, it
> wasn't obvious to me how to change it to copy the marks over though...

Maybe the function can be changed to move the message instead of
doing delete/add.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-10-03 15:30   ` Kai Großjohann
@ 2002-10-03 17:45     ` Jorge Godoy
  0 siblings, 0 replies; 12+ messages in thread
From: Jorge Godoy @ 2002-10-03 17:45 UTC (permalink / raw)
  Cc: ding

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Maybe the function can be changed to move the message instead of
> doing delete/add.

It would help. The idea o copying and deleting at filesystem level
should still be used to avoi problems of moving data between
filesystems. Just moving the entries in .overview and .marks should be
enough. 

-- 
Godoy.     <godoy@ieee.org>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-10-03 12:03 Expiring and keeping marks Jorge Godoy
  2002-10-03 15:00 ` Mike Woolley
@ 2002-12-29 15:27 ` Lars Magne Ingebrigtsen
  2002-12-30 13:49   ` Jorge Godoy
  2002-12-31  9:05 ` Mike Woolley
  2 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-12-29 15:27 UTC (permalink / raw)


Jorge Godoy <godoy@ieee.org> writes:

> I use expire to move messages from one folder to another that will
> have a backup on CD. The problem is that when a message is expired, it
> looses all its marks (specially the read mark), making the folder
> appear on the list with unread messages. OK, I can press "c" on that
> folder and have all messages marked as read, but it would be much
> better if I had to do nothing. 

The problem is that the expiry move is done from a rather low level --
it's actually implemented in `nn*-request-expire-articles', which has
no concept of article marks at all.  So copying over marks would
probably require lots of hacking around.

(Well, I've looked over the code, and it actually wouldn't be all
that difficult.  The most fiddly bit would be to actually copy over
the marks.  Is there a function pair in Gnus that gets/sets article
marks for arbitrary groups?  I can't recall writing such functions,
but perhaps somebody else have?)

Anyway, I've now made `nnmail-expiry-target-group' mark articles as
read when it copies them over, which is simple enough to do.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-12-29 15:27 ` Lars Magne Ingebrigtsen
@ 2002-12-30 13:49   ` Jorge Godoy
  2002-12-30 14:08     ` Jorge Godoy
  0 siblings, 1 reply; 12+ messages in thread
From: Jorge Godoy @ 2002-12-30 13:49 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Anyway, I've now made `nnmail-expiry-target-group' mark articles as
> read when it copies them over, which is simple enough to do.

That's something that will help a lot. I'm going to recompile the CVS
version and give it a try. 

Thanks!

-- 
Godoy.     <godoy@ieee.org>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-12-30 13:49   ` Jorge Godoy
@ 2002-12-30 14:08     ` Jorge Godoy
  2002-12-30 15:51       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Jorge Godoy @ 2002-12-30 14:08 UTC (permalink / raw)


Jorge Godoy <godoy@ieee.org> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> Anyway, I've now made `nnmail-expiry-target-group' mark articles as
>> read when it copies them over, which is simple enough to do.
>
> That's something that will help a lot. I'm going to recompile the CVS
> version and give it a try. 

It worked :-)

Now, we only need to maintain other attributes as well :-) (hey! you
said it wouldn't be that difficult :-))

-- 
Godoy.     <godoy@ieee.org>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-12-30 14:08     ` Jorge Godoy
@ 2002-12-30 15:51       ` Lars Magne Ingebrigtsen
  2003-01-02 17:23         ` Simon Josefsson
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-12-30 15:51 UTC (permalink / raw)


Jorge Godoy <godoy@ieee.org> writes:

> Now, we only need to maintain other attributes as well :-) (hey! you
> said it wouldn't be that difficult :-))

It isn't difficult if somebody has written functions for
getting/setting marks.  :-)

It doesn't look like anybody has, though...  I can't find anything on
casual inspection.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-10-03 12:03 Expiring and keeping marks Jorge Godoy
  2002-10-03 15:00 ` Mike Woolley
  2002-12-29 15:27 ` Lars Magne Ingebrigtsen
@ 2002-12-31  9:05 ` Mike Woolley
  2003-01-01 19:01   ` Lars Magne Ingebrigtsen
  2 siblings, 1 reply; 12+ messages in thread
From: Mike Woolley @ 2002-12-31  9:05 UTC (permalink / raw)


<kpd6njd2fu.fsf@wintermute.casa> <m3u1gvmro9.fsf@quimbies.gnus.org>
From: Mike Woolley <mike@ariel.co.uk>
Date: 31 Dec 2002 09:05:54 +0000
Message-ID: <usmwefthp.fsf@ariel.co.uk>
Lines: 18
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
--text follows this line--
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Jorge Godoy <godoy@ieee.org> writes:
> 
> > Now, we only need to maintain other attributes as well :-) (hey! you
> > said it wouldn't be that difficult :-))
> 
> It isn't difficult if somebody has written functions for
> getting/setting marks.  :-)
> 
> It doesn't look like anybody has, though...  I can't find anything on
> casual inspection.

How about Kai's suggestion of moving the articles, rather than
deleting and adding?

Cheers,
Mike




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-12-31  9:05 ` Mike Woolley
@ 2003-01-01 19:01   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-01 19:01 UTC (permalink / raw)


Mike Woolley <mike@ariel.co.uk> writes:

> How about Kai's suggestion of moving the articles, rather than
> deleting and adding?

The Gnus moving commands seems like it has a quite firm assumption
that it's being run from a summary buffer, so that can't be done
straightforwardly.  Looking over the code, it doesn't even look like
much useful code can be refactored out of that function, since it
looks at the summary newsgroup variables instead of the info marks
lists directly...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2002-12-30 15:51       ` Lars Magne Ingebrigtsen
@ 2003-01-02 17:23         ` Simon Josefsson
  2003-01-02 18:38           ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Josefsson @ 2003-01-02 17:23 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Jorge Godoy <godoy@ieee.org> writes:
>
>> Now, we only need to maintain other attributes as well :-) (hey! you
>> said it wouldn't be that difficult :-))
>
> It isn't difficult if somebody has written functions for
> getting/setting marks.  :-)
>
> It doesn't look like anybody has, though...  I can't find anything on
> casual inspection.

`gnus-group-mark-article-read' seem to do the right thing regardless
of whether the group is selected or not.  Maybe it could be extended
to arbitrary marks.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Expiring and keeping marks
  2003-01-02 17:23         ` Simon Josefsson
@ 2003-01-02 18:38           ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-02 18:38 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> `gnus-group-mark-article-read' seem to do the right thing regardless
> of whether the group is selected or not.  Maybe it could be extended
> to arbitrary marks.

Hm, yes...  It looks like it would be a lot of work, though...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-01-02 18:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 12:03 Expiring and keeping marks Jorge Godoy
2002-10-03 15:00 ` Mike Woolley
2002-10-03 15:30   ` Kai Großjohann
2002-10-03 17:45     ` Jorge Godoy
2002-12-29 15:27 ` Lars Magne Ingebrigtsen
2002-12-30 13:49   ` Jorge Godoy
2002-12-30 14:08     ` Jorge Godoy
2002-12-30 15:51       ` Lars Magne Ingebrigtsen
2003-01-02 17:23         ` Simon Josefsson
2003-01-02 18:38           ` Lars Magne Ingebrigtsen
2002-12-31  9:05 ` Mike Woolley
2003-01-01 19:01   ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).