6.0.0-beta1
7/18/25

[#8882] DIMP: flags missing
Summary DIMP: flags missing
Queue IMP
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 02/23/2010 (5624 days ago)
Due
Updated 04/20/2010 (5568 days ago)
Assigned 02/24/2010 (5623 days ago)
Resolved 04/20/2010 (5568 days ago)
Milestone
Patch No

History
04/20/2010 09:15:19 PM Michael Slusarz Comment #20
Type ⇒ Enhancement
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
Completed.  Added advanced preference that allows non-IMP managed 
keywords to be displayed to the user.

Also (not directly related to this ticket), changed out keyword naming 
system to allow use of the keywords in other MUAs (by using the label, 
after stripping out disallowed characters).
03/17/2010 03:54:58 PM Jan Schneider Comment #18 Reply to this comment
Maybe we should instead implement this like Thunderbird. I guess the 
label syntax is limited anyway? How about non-ascii chars or spaces? 
If those are not possible we should consider using generic labels too 
and store a local map in the prefs.
03/12/2010 10:24:37 PM Michael Slusarz Comment #17 Reply to this comment
If "Label1" may mean TODO in T-bird, but will appear as "Label1" in IMP.
I still think this might be useful for few people. Custom flags are 
only used by power users anyway and my guess is that those are 
happier with seing generic label names than no labels at all.
The approach of collecting all flags and let the users decide which 
ones they want might be the better the solution, but it's also more 
work to implement.
I'm assuming you would be requesting a preference for this behavior, 
turned off by default?
AFAIK, only 4 other keywords outside of RFC 3501 have "official" RFC
designation.  See
http://tools.ietf.org/html/draft-melnikov-imap-keywords-10
Those are the (to be excluded) $ flags anyway.
Unfortunately, this isn't always the case.  Putting '$' in front of a 
flag is a convention, but not a requirement.
02/25/2010 09:51:46 AM Jan Schneider Comment #16 Reply to this comment

[Show Quoted Text - 9 lines]
On one hand that's a pity, because those flags aren't very portable 
then, otoh it makes perfectly sense for Thunderbird of course, so you 
don't have to care about charsets and special chars in labels.
If "Label1" may mean TODO in T-bird, but will appear as "Label1" in IMP.
I still think this might be useful for few people. Custom flags are 
only used by power users anyway and my guess is that those are happier 
with seing generic label names than no labels at all.
The approach of collecting all flags and let the users decide which 
ones they want might be the better the solution, but it's also more 
work to implement.
AFAIK, only 4 other keywords outside of RFC 3501 have "official" RFC 
designation.  See 
http://tools.ietf.org/html/draft-melnikov-imap-keywords-10
Those are the (to be excluded) $ flags anyway.
02/25/2010 05:55:38 AM CVS Commit Comment #15 Reply to this comment
02/24/2010 11:32:47 PM Michael Slusarz Comment #13 Reply to this comment
True, but it would be a great bonus if the MUAs would share their 
flags. I think it's probably safe to use anything not starting with 
$ or \\ to be a user flag that should be included.
e.g. I'm pretty sure T-bird uses "Label1", "Label2", etc. as their 
custom message flags.  So I still fail to see how displaying the IMAP 
keyword nameis useful (since the mappings between "Label1"  (the IMAP 
keyword)-> meaningful label resides in the MUA's preferences, not the 
IMAP server).

If "Label1" may mean TODO in T-bird, but will appear as "Label1" in IMP.

AFAIK, only 4 other keywords outside of RFC 3501 have "official" RFC 
designation.  See 
http://tools.ietf.org/html/draft-melnikov-imap-keywords-10
02/24/2010 11:12:38 PM Jan Schneider Comment #12 Reply to this comment
- Shouldn't the \\deleted flag entry be hidden automatically when
using the trash folder?
Sure.  Although the default is not to allow the deleted flag to be 
set so this is probably why I haven't noticed this.
Though this was with the fresh preference value from prefs.php.
- Shouldn't the custom flags that are stored in the mailbox and
returned by the SELECT call be automatically added to the msgflags
pref, or at least added to flag list on-the-fly?
I have thought about this previously, but I'm not sure it's the best 
idea.  We have no way of knowing what non-standard RFC flags mean.   
Mappings for these non-RFC flags -> labels is MUA-specific.
True, but it would be a great bonus if the MUAs would share their 
flags. I think it's probably safe to use anything not starting with $ 
or \\ to be a user flag that should be included.
I could see us adding an advanced option in the flag preference 
screen that would scan all mailboxes for available flags, present 
them to the user, and allow to set specific labels for any flags the 
user recognizes.
That sounds overly complicated to me. I'd rather try to add the flags 
automatically where we see them, i.e. when opening a mailbox with yet 
unknown flags. Then see how this works in real life.
My guess is that most users will be suprised (in a good way) to see 
their flags popping up automatically.
02/24/2010 10:37:00 PM Michael Slusarz Comment #11 Reply to this comment
- Shouldn't the \\deleted flag entry be hidden automatically when 
using the trash folder?
Sure.  Although the default is not to allow the deleted flag to be set 
so this is probably why I haven't noticed this.
- Shouldn't the custom flags that are stored in the mailbox and 
returned by the SELECT call be automatically added to the msgflags 
pref, or at least added to flag list on-the-fly?
I have thought about this previously, but I'm not sure it's the best 
idea.  We have no way of knowing what non-standard RFC flags mean.   
Mappings for these non-RFC flags -> labels is MUA-specific.

I could see us adding an advanced option in the flag preference screen 
that would scan all mailboxes for available flags, present them to the 
user, and allow to set specific labels for any flags the user 
recognizes.
02/24/2010 10:12:31 PM Jan Schneider Comment #10
Summary ⇒ DIMP: flags missing
Reply to this comment
Indeed. I had the \\seen and \\deleted flags with type "imap" stored 
in the prefs. Probably from an earlier incorrect version of prefs.php. 
After removing the old pref value, the flags (almost) appear correctly 
now.
Two other issues that I'm noticing now though:
- Shouldn't the \\deleted flag entry be hidden automatically when 
using the trash folder?
- Shouldn't the custom flags that are stored in the mailbox and 
returned by the SELECT call be automatically added to the msgflags 
pref, or at least added to flag list on-the-fly?
02/24/2010 09:43:44 PM Michael Slusarz Comment #9 Reply to this comment
For now, looks like we aren't using PERMFLAGS return in dimp.   
Should probably fix this.
Verified that, until 5 minutes ago, dimp was disregarding available 
PERMFLAGS for a mailbox.  So the only explanation for the behavior you 
are seeing - at least that I can come up with - is that your prefs 
configuration is blocking the display of the seen flag.
02/24/2010 06:11:23 PM Michael Slusarz Comment #8 Reply to this comment
Unseen: that's the first option in the flag menus (?)
Not for me. I only have Draft, Flagged, and a custom flag in the flag menus.
Re-reading this - by default, you shouldn't have the Draft flag 
available either.  The only way draft could be available is if you 
have modified the 'msgflags' prefs.php value (flags with 'imapu' as 
the type are the only flags settable to the user).

For now, looks like we aren't using PERMFLAGS return in dimp.  Should 
probably fix this.
02/24/2010 04:57:10 PM Jan Schneider Comment #7 Reply to this comment
I only see an EXAMINE if that's what you mean:

S (1267030529,5944): * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID 
STARTTLS AUTH=PLAIN SASL-IR] neo Cyrus IMAP4 v2.3.11 server ready
C (1267030529,595): [SASL-IR AUTHENTICATE Command - username: jan]
S (1267030529,7251): 1 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID 
LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE 
UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT 
SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE 
CATENATE CONDSTORE IDLE X-NETSCAPE URLAUTH] Success (no protection)
C (1267030529,7268): 2 EXAMINE "INBOX"
S (1267030529,7275): * FLAGS (\Answered \Flagged \Draft \Deleted \Seen 
NonJunk $Label2 $Label1 $Label3 $Label4 $Label5 Junk $Forwarded 
NotJunk foo AMMMa Consulting $NotJunk JunkRecorded $Junk Training 
$MDNSent KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $TODO 
$WATCHED $IGNORED)
S (1267030529,7289): * OK [PERMANENTFLAGS ()]
S (1267030529,7292): * 104 EXISTS
S (1267030529,7294): * 0 RECENT
S (1267030529,7296): * OK [UNSEEN 92]
S (1267030529,7298): * OK [UIDVALIDITY 968256253]
S (1267030529,7299): * OK [UIDNEXT 211934]
S (1267030529,73): * OK [NOMODSEQ] Sorry, modsequences have not been 
enabled on this mailbox
S (1267030529,7302): * OK [URLMECH INTERNAL]
S (1267030529,7303): 2 OK [READ-ONLY] Completed
C (1267030529,7574): 3 LOGOUT
S (1267030529,7583): * BYE LOGOUT received
S (1267030529,7586): 3 OK Completed

02/24/2010 04:43:35 PM Michael Slusarz Comment #6 Reply to this comment
Unseen: that's the first option in the flag menus (?)
Not for me. I only have Draft, Flagged, and a custom flag in the flag menus.
Check your IMAP logs - specifically the PERMANENTFLAGS response from a 
SELECT command - and post it here.  I am guessing that this mailbox 
does not allow the Seen flag to be changed.
02/24/2010 11:06:23 AM Jan Schneider Comment #5 Reply to this comment
Answered: that is by design.  A reading of various RFCs indicate 
that the Answered flag is equal to 'replied-to'.  It should not be 
user settable (it is similar to the $Forwarded flag).
The removal should be mentioned in CHANGES then.
02/24/2010 11:05:26 AM Jan Schneider Comment #4 Reply to this comment
Unseen: that's the first option in the flag menus (?)
Not for me. I only have Draft, Flagged, and a custom flag in the flag menus.
02/24/2010 07:07:37 AM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
Unseen: that's the first option in the flag menus (?)
Answered: that is by design.  A reading of various RFCs indicate that 
the Answered flag is equal to 'replied-to'.  It should not be user 
settable (it is similar to the $Forwarded flag).
02/23/2010 10:46:59 AM Jan Schneider Comment #2 Reply to this comment
Same for (un)seen.
02/23/2010 10:42:55 AM Jan Schneider Comment #1
Priority ⇒ 1. Low
State ⇒ Assigned
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Summary ⇒ DIMP: flag as (un)answered missing
Type ⇒ Bug
Queue ⇒ IMP
Reply to this comment
.

Saved Queries