* nnimap blindly assumes that imap server can store arbitrary flags
@ 2011-04-26 19:47 James Cloos
2011-05-01 14:54 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 11+ messages in thread
From: James Cloos @ 2011-04-26 19:47 UTC (permalink / raw)
To: ding
I see this kind of error, lately, when I ?-tick an article:
,----
| 238728 UID STORE 4467 +FLAGS.SILENT (gnus-dormant)
| 238728 BAD invalid flag list to STORE command
`----
Gnus needs to store its own flags in .newsrc.eld.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-04-26 19:47 nnimap blindly assumes that imap server can store arbitrary flags James Cloos
@ 2011-05-01 14:54 ` Lars Magne Ingebrigtsen
2011-05-01 15:50 ` Simon Josefsson
2011-05-01 18:24 ` James Cloos
0 siblings, 2 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-05-01 14:54 UTC (permalink / raw)
To: ding
James Cloos <cloos@jhcloos.com> writes:
> I see this kind of error, lately, when I ?-tick an article:
>
> ,----
> | 238728 UID STORE 4467 +FLAGS.SILENT (gnus-dormant)
> | 238728 BAD invalid flag list to STORE command
> `----
>
> Gnus needs to store its own flags in .newsrc.eld.
It does store these flags in .newsrc.eld. But I guess sending flags
that the server don't understand to the server is kinda rude? But does
it matter?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 14:54 ` Lars Magne Ingebrigtsen
@ 2011-05-01 15:50 ` Simon Josefsson
2011-05-01 15:56 ` Lars Magne Ingebrigtsen
2011-05-01 18:24 ` James Cloos
1 sibling, 1 reply; 11+ messages in thread
From: Simon Josefsson @ 2011-05-01 15:50 UTC (permalink / raw)
To: ding
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> James Cloos <cloos@jhcloos.com> writes:
>
>> I see this kind of error, lately, when I ?-tick an article:
>>
>> ,----
>> | 238728 UID STORE 4467 +FLAGS.SILENT (gnus-dormant)
>> | 238728 BAD invalid flag list to STORE command
>> `----
>>
>> Gnus needs to store its own flags in .newsrc.eld.
>
> It does store these flags in .newsrc.eld. But I guess sending flags
> that the server don't understand to the server is kinda rude? But does
> it matter?
Gnus should only send it to the server if either gnus-dormant is
mentioned as a PERMANENTFLAGS, or more likely, \* is part of the
server-provided PERMANENTFLAGS. See its documentation:
PERMANENTFLAGS
Followed by a parenthesized list of flags, indicates which of
the known flags the client can change permanently. Any flags
that are in the FLAGS untagged response, but not the
PERMANENTFLAGS list, can not be set permanently. If the client
attempts to STORE a flag that is not in the PERMANENTFLAGS
list, the server will either ignore the change or store the
state change for the remainder of the current session only.
The PERMANENTFLAGS list can also include the special flag \*,
which indicates that it is possible to create new keywords by
attempting to store those flags in the mailbox.
/Simon
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 15:50 ` Simon Josefsson
@ 2011-05-01 15:56 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-05-01 15:56 UTC (permalink / raw)
To: ding
Simon Josefsson <simon@josefsson.org> writes:
> Gnus should only send it to the server if either gnus-dormant is
> mentioned as a PERMANENTFLAGS, or more likely, \* is part of the
> server-provided PERMANENTFLAGS. See its documentation:
Yup. But that function doesn't have access to that information at that
point, so it's easier to just send everything.
So -- does it matter? :-) If it does, it can be fixed, obviously...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 14:54 ` Lars Magne Ingebrigtsen
2011-05-01 15:50 ` Simon Josefsson
@ 2011-05-01 18:24 ` James Cloos
2011-05-01 18:30 ` Lars Magne Ingebrigtsen
2011-05-01 18:35 ` James Cloos
1 sibling, 2 replies; 11+ messages in thread
From: James Cloos @ 2011-05-01 18:24 UTC (permalink / raw)
To: ding
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Gnus needs to store its own flags in .newsrc.eld.
LMI> It does store these flags in .newsrc.eld. But I guess sending
LMI> flags that the server don't understand to the server is kinda rude?
LMI> But does it matter?
The flags get lost the next time g or M-g is called on those groups,
so it seemed like it was no longer storing them locally.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 18:24 ` James Cloos
@ 2011-05-01 18:30 ` Lars Magne Ingebrigtsen
2011-05-01 18:38 ` James Cloos
2011-05-01 18:35 ` James Cloos
1 sibling, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-05-01 18:30 UTC (permalink / raw)
To: ding
James Cloos <cloos@jhcloos.com> writes:
> The flags get lost the next time g or M-g is called on those groups,
> so it seemed like it was no longer storing them locally.
Hm... it's not supposed to overwrite those flags unless the IMAP server
is announcing that it's storing \* flags. Is it announcing that?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 18:24 ` James Cloos
2011-05-01 18:30 ` Lars Magne Ingebrigtsen
@ 2011-05-01 18:35 ` James Cloos
2011-05-30 21:02 ` Lars Magne Ingebrigtsen
1 sibling, 1 reply; 11+ messages in thread
From: James Cloos @ 2011-05-01 18:35 UTC (permalink / raw)
To: ding
>>>>> "JC" == James Cloos <cloos@jhcloos.com> writes:
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
JC>>> Gnus needs to store its own flags in .newsrc.eld.
LMI>> It does store these flags in .newsrc.eld. But I guess sending
LMI>> flags that the server don't understand to the server is kinda rude?
LMI>> But does it matter?
JC> The flags get lost the next time g or M-g is called on those groups,
JC> so it seemed like it was no longer storing them locally.
I looked at the .newrc.eld again. The only messages from nnimap groups
which are marked dormant are /old/.
(Side note: is it useful to compact a sequence such as (... 55 56 ...)
into (... (55 . 56) ...)? Is it faster than leaving a sequence of two
uncompacted?)
I like to mark my own posts dormant so that I can readily notice
replies, but I don't see anything recent in the dormant sexps.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 18:30 ` Lars Magne Ingebrigtsen
@ 2011-05-01 18:38 ` James Cloos
2011-05-30 21:11 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 11+ messages in thread
From: James Cloos @ 2011-05-01 18:38 UTC (permalink / raw)
To: ding
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> Hm... it's not supposed to overwrite those flags unless the IMAP server
LMI> is announcing that it's storing \* flags. Is it announcing that?
Permanent flags are: %Seen %Answered %Deleted %Flagged %Draft
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 18:35 ` James Cloos
@ 2011-05-30 21:02 ` Lars Magne Ingebrigtsen
2011-05-31 4:52 ` James Cloos
0 siblings, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-05-30 21:02 UTC (permalink / raw)
To: ding
James Cloos <cloos@jhcloos.com> writes:
> (Side note: is it useful to compact a sequence such as (... 55 56 ...)
> into (... (55 . 56) ...)? Is it faster than leaving a sequence of two
> uncompacted?)
They take the same number of cons cells, but the latter allows expanding
to (55 . 57) without generating any garbage or manipulating the
sequence, so it's (marginally) faster in the long run. Possibly.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-01 18:38 ` James Cloos
@ 2011-05-30 21:11 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-05-30 21:11 UTC (permalink / raw)
To: ding
James Cloos <cloos@jhcloos.com> writes:
> Permanent flags are: %Seen %Answered %Deleted %Flagged %Draft
Right, so there's definitely a bug in there somewhere.
However, none of my IMAP groups seem to lack %*, so it's slightly tricky
to reproduce, but I'll try to synthesise...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: nnimap blindly assumes that imap server can store arbitrary flags
2011-05-30 21:02 ` Lars Magne Ingebrigtsen
@ 2011-05-31 4:52 ` James Cloos
0 siblings, 0 replies; 11+ messages in thread
From: James Cloos @ 2011-05-31 4:52 UTC (permalink / raw)
To: ding
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> They take the same number of cons cells, but the latter allows expanding
LMI> to (55 . 57) without generating any garbage or manipulating the
LMI> sequence, so it's (marginally) faster in the long run. Possibly.
Cool.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-05-31 4:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-26 19:47 nnimap blindly assumes that imap server can store arbitrary flags James Cloos
2011-05-01 14:54 ` Lars Magne Ingebrigtsen
2011-05-01 15:50 ` Simon Josefsson
2011-05-01 15:56 ` Lars Magne Ingebrigtsen
2011-05-01 18:24 ` James Cloos
2011-05-01 18:30 ` Lars Magne Ingebrigtsen
2011-05-01 18:38 ` James Cloos
2011-05-30 21:11 ` Lars Magne Ingebrigtsen
2011-05-01 18:35 ` James Cloos
2011-05-30 21:02 ` Lars Magne Ingebrigtsen
2011-05-31 4:52 ` James Cloos
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).