Koozali.org: home of the SME Server

Procmail folder question

Des Dougan

Procmail folder question
« on: February 03, 2003, 01:16:37 AM »
I've just installed Stephen Noble's procmail filter add-in. I noticed that it has created a Mail directory, with sub-folders below this. However, my 5.1.2 server is using Maildir, with folders at the same level. Has there been a change in email organization on the server, and can I configure procmail to use the existing folder set-up?

Thanks,

Des Dougan

stephen noble

Re: Procmail folder question
« Reply #1 on: February 03, 2003, 07:58:02 AM »
AFAIK
~/Maildir is your inbox
~/MAIL/folders are your imap folders

since 5.6 imap has worked perfectly
before that you tended to make imap folders all over the place
ymmv

stephen noble
dungog.net/sme

Des Dougan

Re: Procmail folder question
« Reply #2 on: February 03, 2003, 09:31:19 AM »
Stephen,

Thanks for your reply. My folders are all at the same level as Maildir, perhaps because they were set up by rules from the Windows client (Eudora in my case). If I wanted to retain this configuration, would that be where your root patch would be used, or does it have a different purpose?

Regards,

Des

Bill Talcott

Re: Procmail folder question
« Reply #3 on: February 03, 2003, 05:29:57 PM »
/etc/e-smith/web/functions/userpanel-procmail

The last line of the BEGIN section. I'm no expert on the workings of it, but that fixed it for me on 5.5... This makes the dropdown folder box work, and puts them in the home folder. I do have the imap-root-patch installed, and I may have tweaked the templates to get the variables pointing at the right place (been a while since I did that part).

BEGIN
{
    # Clear PATH and related environment variables so that calls to
    # external programs do not cause results to be tainted. See
    # "perlsec" manual page for details.

    $ENV {'PATH'} = '/bin:/usr/bin';
    $ENV {'SHELL'} = '/bin/bash';
    delete @ENV {qw(IFS CDPATH ENV BASH_ENV)};

    $courier = -x "/usr/lib/courier-imap/bin/imapd";
    # $MaildirPath = $courier ? "Maildir" : "Mail";
    $MaildirPath = $courier ? "Maildir" : "";
}

Des Dougan

Re: Procmail folder question
« Reply #4 on: February 04, 2003, 07:00:19 AM »
Bill,

Thanks. I will take a look at it.


Des