[Dovecot] Maildirmake equiv?

LuKreme kremels at kreme.com
Mon Aug 19 03:24:10 EEST 2013


On 16 Aug 2013, at 17:44 , David Benfell <benfell at parts-unknown.org> wrote:

> mkdir ${path}/${name}/tmp
> mkdir ${path}/${name}/cur
> mkdir ${path}/${name}/new
> 
> Where ${path} is the path to the parent folder and ${name} is the name
> of the Maildir.
> 
> That's really all there is to it.

$ cat ~/bin/maildirmake
#!/bin/bash

mkdir -p $1/{new,cur,tmp}

$ ~/maildirmake .test && ls -lsR .test
total 24
8 drwxr-xr-x  2 kremels  kremels  512 Aug 18 18:23 cur
8 drwxr-xr-x  2 kremels  kremels  512 Aug 18 18:23 new
8 drwxr-xr-x  2 kremels  kremels  512 Aug 18 18:23 tmp

.test/cur:
total 0

.test/new:
total 0

.test/tmp:
total 0

Yep. seems to work fine. I think courier had a special command because it creates some extra files and a directory inside the maildir for its indexing.

-- 
Why can't you be in a good mood? How hard is it to decide to be in a
good mood and be in a good mood once in a while?"



More information about the dovecot mailing list