procmail
[Top] [All Lists]

Re: setting up /etc/procmail

2002-10-23 16:42:10
On Wed, 23 Oct 2002, LuKreme wrote:

On Wednesday, Oct 23, 2002, at 04:49 Canada/Mountain, Udi Mottelo wrote:
    Procmail will create the folder if needed.

Really?  I get "error writing to file $HOME/Mailbox/temp" if I try to
dump mail in "temp" without it existing.  And it doesn't log if the
logfile doesn't exist.   Hrm...

        As I learn 1 picture == 32 words (in case of 32bit machines)
        So here is the picture:

yarkon~/Procmail% set prompt = ":; "
:;
:; cat > ./test
VERBOSE=yes
LOGABSTRACT=yes
SHELL=/bin/sh
DEFAULT=/dev/null

:0
$HOME/Procmail/dir/temp
:;
:; pwd
/homes/ayalon/sysgrp/uuddii/Procmail
:;
:; ls dir
dir: No such file or directory
:;
:; echo "Hi" | procmail ./test
procmail: [13685] Thu Oct 24 00:41:58 2002
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "LASTFOLDER=/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Opening "/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Error while writing to
"/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
  Folder: /dev/null                                                          3
:;
:; : No dir - Error message
:;
:; mkdir dir
:; ls dir
total 0
:;
:; : Now, we have dir but have no folder "temp"
:;
:; echo "Hi" | procmail ./test
procmail: [13706] Thu Oct 24 00:43:02 2002
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "LASTFOLDER=/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Opening "/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Acquiring kernel-lock
  Folder: /home/ayalon/sysgrp/uuddii/Procmail/dir/temp                       4
:;
:; : We have dir - we have new folder.
:;
:; chmod 666 dir
:;
:; echo "Hi" | procmail ./test
procmail: [13801] Thu Oct 24 00:49:35 2002
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "LASTFOLDER=/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Opening "/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Error while writing to
"/home/ayalon/sysgrp/uuddii/Procmail/dir/temp"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
  Folder: /dev/null                                                           3
:;
:; : Now, we have folder but the dir's permission is wrong -
:; : We get the same Error message
:;

        I set the prompt to make easy cut n paste.

Bye,
 Udi


        Btw.  talking about directories.  Turn off the eXe-flag will block
        working in the directory.  Turn off only the Read-flag will allow
        working *directly* on files and subdirectories i.e. you can do
        edit xyz   but not  edit xy*.  One who doesn't know the names of
        the files and subdirectory will not be able to read and navigate
        in the directory.  In my example I need 333 if I want to hide the
        folder (no one can guess that the name is "temp" (;-) )


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail