I want to be able to have custom autoexpunge settings for different users.
I have it working for various folders (draft, junk, trash), but I can't seem to get it working for the user's primary inbox.
In my user_query (I'm using mysql), I'm returning entries like this in the userdb_import field:
namespace/inbox/mailbox/autoexpunge=5d namespace/inbox/mailbox/Drafts/autoexpunge=5d namespace/inbox/mailbox/Junk/autoexpunge=5d namespace/inbox/mailbox/Trash/autoexpunge=5d
And everything works fine for Drafts, Junk, and Trash, but not for the main inbox. The logs show:
Debug: Unknown userdb setting: plugin/namespace/inbox/mailbox/autoexpunge=5d
I've also tried variations, trying to get the namespace correct for the main inbox, but they all get the same "Unknown userdb setting" error:
namespace/inbox/mailbox/autoexpunge=5d
namespace/inbox/mailbox/inbox/autoexpunge=5d
namespace/inbox/mailbox/Inbox/autoexpunge=5d
namespace/inbox/mailbox/INBOX/autoexpunge=5d
I suspect I'm just giving the wrong namespace for the primary inbox.
What's the right way to do this?
Tom
I wrote:
I want to be able to have custom autoexpunge settings for different users.
Sorry to follow up on my own post - but will it work if I define the inbox explicitly in 15-mailboxes.conf? Does this syntax properly set autoexpunge for the inbox?
namespace inbox { separator = . # These mailboxes are widely used and could perhaps be created automatically: mailbox Inbox { autoexpunge = 0 } .....
Will this give me no autoexpunge by default, and then allow me to override it in with via userdb_import in my sql query?
At first glance it doesn't throw an error - I just want to be sure that autoexpunge is disabled when it's explicitly sent to zero, and that I'm correctly referencing the inbox in 15-mailboxes.conf and in userdb_import (namespace/inbox/mailbox/INBOX/autoexpunge=5d).
Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 29 Feb 2016, Tom Johnson wrote:
I want to be able to have custom autoexpunge settings for different users.
I have it working for various folders (draft, junk, trash), but I can't seem to get it working for the user's primary inbox.
How did you've configured autoexpunge for the primary INBOX in the conf-files?
In my user_query (I'm using mysql), I'm returning entries like this in the userdb_import field:
namespace/inbox/mailbox/autoexpunge=5d namespace/inbox/mailbox/Drafts/autoexpunge=5d namespace/inbox/mailbox/Junk/autoexpunge=5d namespace/inbox/mailbox/Trash/autoexpunge=5d
And everything works fine for Drafts, Junk, and Trash, but not for the main inbox. The logs show:
Debug: Unknown userdb setting: plugin/namespace/inbox/mailbox/autoexpunge=5d
I've also tried variations, trying to get the namespace correct for the main inbox, but they all get the same "Unknown userdb setting" error:
namespace/inbox/mailbox/autoexpunge=5d namespace/inbox/mailbox/inbox/autoexpunge=5d namespace/inbox/mailbox/Inbox/autoexpunge=5d namespace/inbox/mailbox/INBOX/autoexpunge=5d
I suspect I'm just giving the wrong namespace for the primary inbox.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVtVJ2nz1H7kL/d9rAQIvbQgAk9iLNsHGKpLeZpRC52yAMhfvLaOClCd1 /FcW8CI6J/Wk7GBdpk4qFaIDyttF1XBa/srXMer23xOR/AJnpRX04ibhBQlCQvad IbMeR+6Mi98tP7qrLlqs61r35lFhOwmWVHKVrAyBoZ2KyvMpgFA+u3yo3Zx2d9z2 romvqK3xtOZJPg/5VgrcKB/UftIpTkthvH+Lsiwtr4WZ/hezbo3cM1aI2ElL2zx0 eLTyHH6MdUJWh0j7s441Ouq4DcSOg489E7D+Um89q2/JwrDSqnzJsKHoYLuuMKHM C0NLspwhP2EHQ8WnodlA+0aPr2zO+sCoVd5HxUatZ2020MFquF5qQA== =mC2X -----END PGP SIGNATURE-----
participants (2)
-
Steffen Kaiser
-
Tom Johnson