procmail
[Top] [All Lists]

Re: Locks OK with {}'s?

1997-12-31 11:42:47
At 09:24 AM 12/30/97 -0800, Mike Andersson wrote:
Much of this has been over my head since I don't understand
lockfiles very well. But, here's what's happening to me:

The only recipe I use that has {} looks like this:

:0
* ^TOHIGHLA-L
{
 :0:
 * ^FROM.*(Debbie D|Wendy M)
 01-Highlander

 :0:
 /dev/null
}

It seems to do what I want it to, except for the fact that I'm
ending up with a mail folder with filename "{ " (the space is a
ctrl-I or a ctrl-H, as far as I can tell).

Hmmm.  Since ^H is a backspace, I'm suspicious that you might
have somehow gotten the sequence {^H into your .procmailrc either
in the above recipe or somewhere else, and hence it doesn't show
with whatever you're displaying it with.  Try
    od -c .procmailrc | more
(or any variant you like) to see; ^H probably will show up as
either \b or 010.  If this is the problem, the fix should be obvious.

To find what your "funny filename" really is, try "ls {* | od -c"
or "ls \{* | od -c" depending on what shell you're using.
The contents of that folder file might also give a clue as to
where in the .procmailrc it's coming from.

Hope that helps,
Stan


ps - /dev/null is "dangerous" unless you're really, really sure
you want to lose the mail.  But if you are absolutely sure, then
don't lock it (use :0 in the line above /dev/null rather than :0: ).

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Locks OK with {}'s?, Stan Ryckman <=