Gnus development mailing list
 help / color / mirror / Atom feed
* Move articles while offline
@ 2002-10-20 19:59 Kai Großjohann
  2002-10-22 10:07 ` Simon Josefsson
  2002-10-23  6:16 ` Kai Großjohann
  0 siblings, 2 replies; 4+ messages in thread
From: Kai Großjohann @ 2002-10-20 19:59 UTC (permalink / raw)


I'd like to start a discussion on how to implement moving articles
while offline.  What features do you want to see?  Is it necessary to
be fully transparent?

One part that I'm fairly sure about is that moving article 4711 while
offline should make a note about the source group, the source article
number, and the target group, in the list of things to do when
synchronizing.  (Perhaps together with the flags synchronization
stuff.)

Of course, if uidvalidity changes when you plug in again, you're
screwed.  How does the flags sync code do this?

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



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

* Re: Move articles while offline
  2002-10-20 19:59 Move articles while offline Kai Großjohann
@ 2002-10-22 10:07 ` Simon Josefsson
  2002-10-23  6:16 ` Kai Großjohann
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Josefsson @ 2002-10-22 10:07 UTC (permalink / raw)
  Cc: ding

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

> One part that I'm fairly sure about is that moving article 4711 while
> offline should make a note about the source group, the source article
> number, and the target group, in the list of things to do when
> synchronizing.  (Perhaps together with the flags synchronization
> stuff.)

Another step is to make the newly moved article visible offline, as it
had already been transfered to the server.  This is more difficult,
but I think people kind of expect this to work.  OTOH it is probably
best to leave this until the low-level stuff works.

> Of course, if uidvalidity changes when you plug in again, you're
> screwed.  How does the flags sync code do this?

It doesn't. :-/




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

* Re: Move articles while offline
  2002-10-20 19:59 Move articles while offline Kai Großjohann
  2002-10-22 10:07 ` Simon Josefsson
@ 2002-10-23  6:16 ` Kai Großjohann
  2002-10-23  8:55   ` Simon Josefsson
  1 sibling, 1 reply; 4+ messages in thread
From: Kai Großjohann @ 2002-10-23  6:16 UTC (permalink / raw)


One idea for implementing $SUBJECT is to save to-be-moved articles as
drafts.  That is, when you hit B m on an article while offline, the
article is fetched, some headers are added, and then it is saved in
nndraft:queue.

The new headers would prevent gnus-group-send-queue from doing their
normal operation.  Instead, they would save the article in the group
indicated by a special header (the Gcc header comes to mind), and
then they would set marks on the new article.  (The marks would be
indicated in one of the new headers.

So it seems that just a single header along the lines of

    X-Gnus-Move-Flags: (ticked)

could be sufficient.  The Gcc header indicates the target group.

The same machinery could be used for auto-marking other Gcc'd
articles.

Thoughts?

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



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

* Re: Move articles while offline
  2002-10-23  6:16 ` Kai Großjohann
@ 2002-10-23  8:55   ` Simon Josefsson
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Josefsson @ 2002-10-23  8:55 UTC (permalink / raw)
  Cc: ding

kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> One idea for implementing $SUBJECT is to save to-be-moved articles as
> drafts.  That is, when you hit B m on an article while offline, the
> article is fetched, some headers are added, and then it is saved in
> nndraft:queue.
>
> The new headers would prevent gnus-group-send-queue from doing their
> normal operation.  Instead, they would save the article in the group
> indicated by a special header (the Gcc header comes to mind), and
> then they would set marks on the new article.  (The marks would be
> indicated in one of the new headers.
>
> So it seems that just a single header along the lines of
>
>     X-Gnus-Move-Flags: (ticked)
>
> could be sufficient.  The Gcc header indicates the target group.
>
> The same machinery could be used for auto-marking other Gcc'd
> articles.
>
> Thoughts?

Looks good.  Maybe place the offline-moved articles in its own
nndraft: folder?  Then it might be easier to locate the message and
insert them into the appropriate group while offline, to give the
impression that the article was already moved.  Hm.  Another idea: how
about using the cache to simulate that articles exist in the group?
Then the code to handle overview data and group high/low article count
and summary insertion already exists.  Only problem is which article
number to use.  Maybe negative ones work.




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

end of thread, other threads:[~2002-10-23  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20 19:59 Move articles while offline Kai Großjohann
2002-10-22 10:07 ` Simon Josefsson
2002-10-23  6:16 ` Kai Großjohann
2002-10-23  8:55   ` Simon Josefsson

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).