procmail
[Top] [All Lists]

Re: HELP ..with send file wiht procmail

1997-02-15 12:25:04
"darleen" <darleen(_at_)mgl(_dot_)ca> writes:
I am at a deadend as to how to get this working ....

ahve followed ..what I believe to be correct :)

it now finds the file

but makes message header called name and puts it in same directory as the
file

:0
             * ^Subject: send file [0-9a-z]
             * !^X-Loop: darleen(_at_)darleen(_dot_)com
             * !^Subject:.*Re:
             * !^FROM_DAEMON
             * !^Subject: send file .*[/.]\.
             {
               MAILDIR=$HOME/mail # chdir to the fileserver
directory

               :0 fhw                   # reverse mailheader and extract
name
               * ^Subject: send file \/[^ ]*
               | formail -rA "X-Loop: darleen(_at_)darleen(_dot_)com"
...
here is the log file:
...
procmail: Assigning "MAILDIR=/home/darleen/mail"
procmail: Assigning "directory"
procmail: Extraneous filter-flag ignored
procmail: Assigning "LASTFOLDER=name"
procmail: Opening "name"
procmail: Acquiring kernel-lock
From mrp(_at_)lightning(_dot_)mgl(_dot_)ca  Sat Feb 15 06:39:25 1997
Subject: send file login.cmd
 Folder: name                                                            
procmail: Notified comsat: "darleen(_at_)1118:/home/darleen/mail/name"


what am I doing wrong????


Your editor is wrapping the lines, as shown above.  Thus procmail sees:


MAILDIR=$HOME/mail              # comment....
directory

:0fhw                           # comment....
name
* ^Subject: etc....


The plain word "directory" is interpreted as a request to unset the
variable "directory", while "name" looks like the action of the recipe
that starts with ":0fhw".

The simplest solution is probably to not indent everything so deeply.
Two tabs (16 spaces) seems a big much.  The other choice is to turn off
automatic line wrapping in your editor.  Either way, be sure to
'unwrap' the comments that it has already broken, by putting
"directory" and "name" back on the lines that precede them right now.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>