Hi Gordon and *, Am 2008-05-27 19:38:28, schrieb Public Mailing Lists: > Now I have lots of folders with dots in their names. And both Courier > and Dovecot treat the dot as hierarchy separator. Frequently, domain > names (as in mail.google.com) are used as folder names in my system, and > these get messed up. > > Is there a way in either Courier or Dovecot to allow dots '.' in folder > names?
No, since it is its convention.
> How can I get this Unix Hierarchy Convention in Courier or Dovecot?
Convert your "DOT" folders...
Since I am using since arround 8 years "courier" and "procmail" I have
done some heavy coding and scripting around it...
I am using procmail recipes for filtering my mailinglists and one of
them is:
----[ '/usr/share/tdtools-procmail/ML_linux' ]--------------------------
<snip>
:0
* $ ^Envelope-To:.*(${TDTP_EMAIL_ML})
{
<snip>
:0
* ! ? grep --ignore-case --regexp="${FROM}" ${WLIST}
* ? test -f ${HOME}/.procmail/ML_linux.spamfilter
{ INCLUDERC=${HOME}/.procmail/ML_linux.spamfilter }
<snip>
#=====================================================================
:0
* ^Mailing-List: contact \/.*
{
TMPVAR=`echo "${MATCH}" |tr '.' '_' |sed 's|-help@|@|' |sed 's|;.*||'`
:0
.ML_linux.${TMPVAR}/
}
#=====================================================================
:0
* $ ^X-BeenThere:.*[${ST}]\/.*
{
TMPVAR=`echo "${MATCH}" |tr '.' '_'`
:0
.ML_linux.${TMPVAR}/
}
#=====================================================================
:0
* $ ^X-Mailing-List:.*[${ST}]\/.*
{
TMPVAR=`echo "${MATCH}" |tr '.' '_'`
:0
.ML_linux.${TMPVAR}/
}
#=====================================================================
:0
* $ ^Sender:.*[${ST}]\/.*
{
TMPVAR=`echo "${MATCH}" |tr '.' '_' |sed 's|-owner@|@|'`
:0
.ML_linux.${TMPVAR}/
}
#=====================================================================
:0
.ATTENTION.ML_linux/
}
------------------------------------------------------------------------
As you can see, I change the DOTs into "_" while filtering.
which then create a Maildir of:
----[ command 'ld -d ~/Maildir/.ML_linux*/' ]-----------------------------
~/Maildir/.ML_linux/
~/Maildir/.ML_linux.2007/
~/Maildir/.ML_linux.2008/
~/Maildir/.ML_linux.ADMIN/
~/Maildir/.ML_linux.ADMIN.2007/
~/Maildir/.ML_linux.ADMIN.2008/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/.ML_linuxchix/
~/Maildir/.ML_linuxchix.2008/
~/Maildir/.ML_linuxchix.ADMIN/
~/Maildir/.ML_linuxchix.ADMIN.2008/
~/Maildir/.ML_linuxchix.grrls-only/
~/Maildir/.ML_linuxchix.grrltalk/
~/Maildir/.ML_linuxchix.techtalk/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/.ML_linux.sitebar/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
~/Maildir/[EMAIL PROTECTED]/
------------------------------------------------------------------------
For the Debian lists I use a Filter a little bit different but equal...
----[ '/usr/share/tdtools-procmail/ML_debian' ]--------------------------
<snip>
:0
<snip>
:0
* ! ? grep --ignore-case --regexp="${FROM}" ${WLIST}
* ? test -f ${HOME}/.procmail/ML_debian.spamfilter
{ INCLUDERC=${HOME}/.procmail/ML_debian.spamfilter }
<snip>
:0
* ^X-Mailing-List:.*<[EMAIL PROTECTED]>
* ^X-Mailing-List:.*<debian-\/[-a-zA-Z0-9]+
.ML_debian.${MATCH}/
#-------------------------------------------------------------------
:0
* ^X-BeenThere:[EMAIL PROTECTED]
* ^X-BeenThere:.*\/[-a-zA-Z0-9]+
.ML_debian.${MATCH}/
<snip>
------------------------------------------------------------------------
Note: Currently I am preparing a new private debian package (very
complex) for "courier" and "procmail" and will put it under
the name "tdtools-procmail" onto my website and mirror at
<http://www.debian.tamay-dogan.net/> but haveing some
problems with my Devel-Station (broken) to build the packages.
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

