doveadm search -A tries to create mailboxes

Bill Shirley bill at KnoxvilleChristian.org
Fri Jan 8 02:27:50 UTC 2016


Yes, I have:
   mailbox Trash {
     special_use = \Trash
     auto        = subscribe
# next needs dovecot 2.2.20
#    autoexpunge        = 2 weeks
   }
   mailbox SystemFolders {
     auto        = create
#    auto       = subscribe
   }


However, I would think that only applies to mail delivery or POP3/IMAP access.  Are you saying that all doveadm -A commands will 
create Maildir and 'auto=create/subscribe' folders?  Why did it not create '~/Maildir/SystemFolders'?  I did hit Ctrl-C as soon 
as I saw what doveadm was doing.

Again, I don't think SEARCH should create any directories.  Maybe have a doveadm CREATE for that purpose?  I am not the creator 
nor a developer of Dovecot; just one user with an opinion.  If they think this is the correct behavior I'm fine with that.

Bill


On 1/7/2016 2:22 AM, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, 6 Jan 2016, Bill Shirley wrote:
>
>> The man page doesn't mention that 'search' updates anything.
>
> SEARCH has to open the Maildir. Dovecot has the feature to create mailboxes on the fly on access, not only on write accesses. If
> Dovecot wouldn't, you would get lots of "Invalid Mailbox" errors, because -A enumerates users, you want to skip.
>
> Actually, if you cannot limit -A with Timo's hints, you might try to override the userdb setting via -o command line options
> with a passwd-file, in which you list only "valid" users.
>
>> BTW, now I have:
>> /var/cache/akmods/Maildir/.Trash
>
> you probably have autocreate for Trash? But you will see Maildir for all users anyway.
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEVAwUBVo4SM3z1H7kL/d9rAQJtRwgAiCprUdix0RuNeeET9eL/LiKhJi2bc8nV
> tX4VXXzCmFnhq8NkWnEOj24aFVeHNxPMXqdbDdIiEQ5zecGQhDxF02VYwTSkOdme
> PmSxtf8hHUWUtqx8Lqv99hz6fV+OEHHTG7Q2/ZAUHDLuDTsiARTyntZKCjKwpigb
> RHLJxxN8tDdtdb8Re6eN8GybyPgGIaGh+T7+oY30LeGFEO/JuQ+twmp8KxK5Zq8z
> Ejjk/m+QrP2uQWRG+xptzIPX10jsCsF1mPNNX/8hXJcWdQ+ohmHFRZMuHntNOTsa
> SNNfUuvvXl/tTtn+f25oy6qJEhlOFnj9pLVWQhS/kT+Bw/9GX7cSbA==
> =3mLB
> -----END PGP SIGNATURE-----


More information about the dovecot mailing list