procmail
[Top] [All Lists]

Re: Is there any way to detect NULLs in email messages?

1998-05-08 08:00:05
Fairly often I am getting NULLs in email messages.  This is screwing
up my  
logfile and my mailbox index (under NeXTStep).

Is there any way to detect NULLs using procmail, and possibly
convert them  
to something else or simply delete them?

If you usually save something to a file as:

:0: condition
file

Try:
:0: null.lock
| tr -d '\0'  >> file

The tr command will delete null characters with the
-d option.  In order to change the null to spaces 
you can do this:

tr '\0' ' ' 

(Where in the second set of quotes there is a space)
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com