Hi Aki,

thanks, i should have that idea on my own. 

Indeed it's simply not shown by curl. If i turn verbose on the extended 
response is shown:

curl -v -u $IMAPUSER:$IMAPPW imaps://... -X 'LIST "" "INBOX" RETURN (STATUS 
(MESSAGES UNSEEN))'
* Host ...:993 was resolved.
[...]
< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ 
AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> A001 CAPABILITY
< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ 
AUTH=PLAIN AUTH=LOGIN
< A001 OK Pre-login capabilities listed, post-login capabilities have more.
> A002 AUTHENTICATE PLAIN [...]
< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND 
URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED 
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH 
LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE 
SAVEDATE LITERAL+ NOTIFY METADATA SPECIAL-USE QUOTA
< A002 OK Logged in
> A003 LIST "" "INBOX" RETURN (STATUS (MESSAGES UNSEEN))
< * LIST () "." INBOX
* LIST () "." INBOX
< * STATUS INBOX (MESSAGES 105 UNSEEN 79)
< A003 OK List completed (0.025 + 0.000 + 0.025 secs).
* Connection #0 to host ... left intact

> Aki Tuomi <aki.tu...@open-xchange.com> hat am 25.11.2024 10:15 CET 
> geschrieben:
> 
>  
> I tested with curl -v and...
> 
> < A002 OK Logged in
> > A003 LIST "" "INBOX" RETURN (STATUS (MESSAGES UNSEEN))
> < * LIST () "." INBOX
> * LIST () "." INBOX
> < * STATUS INBOX (MESSAGES 30702 UNSEEN 6649
> 
> Seems curl just doesn't show the reply. Maybe bug in curl?
> 
> Aki
> 
> > On 25/11/2024 10:59 EET Tim via dovecot <dovecot@dovecot.org> wrote:
> > 
> >  
> > Hi,
> > i try to use extended LIST command but it doesn't work out.
> > 
> > I wonder if there is any option necessary to enable it or some option that 
> > prevent using extended LIST commands (for example Courier compatible 
> > namespace config). I didn't find anything in the documentation.  
> > Did anyone notice a similar behavior?
> > 
> > curl -u $IMAPUSER:$IMAPPW imaps://... -X 'STATUS INBOX (MESSAGES UNSEEN)'
> > * STATUS INBOX (MESSAGES 105 UNSEEN 79)
> > 
> > curl -u $IMAPUSER:$IMAPPW imaps://... -X 'LIST "" "INBOX" RETURN (STATUS 
> > (MESSAGES UNSEEN))'
> > * LIST () "." INBOX
> > 
> > Best regards,
> > Tim
> > _______________________________________________
> > dovecot mailing list -- dovecot@dovecot.org
> > To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to