setmetadata and NIL
Aki Tuomi
aki.tuomi at open-xchange.com
Mon May 3 13:22:49 EEST 2021
> On 03/05/2021 13:01 Steffen <skdovecot at inf.h-brs.de> wrote:
>
>
> Hi everybody,
>
> I played with Dovecot's metadata in
>
> dovecot-core 2:2.3.14-5+debian9
>
> from repo
>
> deb https://repo.dovecot.org/ce-2.3-latest/debian/stretch stretch main
>
>
> https://tools.ietf.org/html/rfc5464#section-4.3
> and
> https://github.com/coi-dev/coi-specs/blob/master/webpush-spec.md
>
> use NIL to remove items.
>
> Unsubscribe
>
> To unsubscribe from push notification set the previously push annotation
> to NIL.
>
> *Example for unsubscribing from push notifications: *
>
> C: a SETMETADATA ""
> (/private/vendor/vendor.dovecot/webpush/subscriptions/31754ee7-d3ee-4226-b112-6895ed26fcf8
> NIL)
> S: a OK SETMETADATA complete
>
> and
>
> C: a SETMETADATA INBOX (/private/comment NIL)
> S: a OK SETMETADATA complete
>
> In the above example, the entry "/private/comment" is removed from
> the mailbox "INBOX".
>
>
> However, the metadata is stored as string NIL instead of removed:
>
> cat /home/user/Maildir/dovecot-attributes
> priv/369c8f17e81ff151f40400002e27b77f/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/webpush/subscriptions/31754ee7-d3ee-4226-b112-6895ed26fcf8
> NIL
> priv/369c8f17e81ff151f40400002e27b77f/comment
> NIL
> shared/369c8f17e81ff151f40400002e27b77f/comment
> NIL
>
> a GETMETADATA (DEPTH 1) ""
> (/private/vendor/vendor.dovecot/webpush/subscriptions)
> * METADATA ""
> (/private/vendor/vendor.dovecot/webpush/subscriptions/31754ee7-d3ee-4226-b112-6895ed26fcf8
> {3}
> NIL)
> a OK Getmetadata completed (0.001 + 0.000 secs).
>
> Do I have misinterpreted the samples? I though, the metadata is to be
> removed and getmetadata should not return the string NIL.
>
> Kind regards,
>
> --
> Steffen
Hi!
Seems you indeed discovered a bug. We are looking into it and tracking it as DOP-2379.
Thank you for reporting it.
Aki
More information about the dovecot
mailing list