Re: special use folder like Drafts, Sent, etc.

[email protected] Thu, 25 Jun 2026 15:40:25 +0200
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Am 25.06.2026 15:04, schrieb Marco Moock:
> Am 25.06.26 um 08:24 schrieb [email protected]:
>=20
>> As stated by Jean, you can either script the assignment of special use=20
>> flags,
>=20
> What is the command (mboxcfg?) for doing it?

Hello,


I think I gave an example before?


- Authenticate as the "johndoe" user, using the cyrus user's=20
credentials:

cyradm --user cyrus --authz johndoe localhost


Now depending on your namespace (i will assume INBOX/ - if you are=20
unsure use "lm" to list your user's mailboxes)


setmetadata --private INBOX/Trash specialuse "\\Trash"



that's it.


If you feel lazy and tested it beforehand (I did), you can also use it=20
with a heredoc:


cyradm --user cyrus --authz johndoe localhost <<EOF
setmetadata --private INBOX/Trash specialuse "\\Trash"
EOF




Best regards,

Alex

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T2458805e4a6ef435-Mfd935d=
05c34ec08b71a88f1a
Delivery options: https://cyrus.topicbox.com/groups/info/subscription