procmail
[Top] [All Lists]

^M in .procmailrc file

2000-07-19 14:08:49
The problem is that my users are using Windows to modify the .procmailrc
file, and then uploading the modified file to $HOME.  It there any way on
their end to have the \r deleted, or do I have to periodically go through
all the .procmailrc files on my system and remove them?

Thanks,

Glen

On Wed, 19 Jul 2000, Charles Curley wrote:

On Wed, Jul 19, 2000 at 12:49:52AM -0500, Glen Lee Edwards wrote:
I'm getting the following error message in /var/log/sendmaillog.

Jul 19 01:39:03 glen procmail[20805]: Error while writing to
"/home/matt^M/.procmaillog^M"

The lines in question (I think) read such:

PATH=/bin:/usr/bin:/usr/sbin
MAILDIR=$HOME/mail
PMDIR=$HOME
LOGFILE=$PMDIR/.procmaillog
 
I don't have a clue where the extra "^M"s are coming from.  I've rewritten
the above lines using emacs, but the "^M"s still keep showin up.

emacs may be part of your problem. It is smart enough to detect files that
have alien line endings and display them correctly anyway. For example, it
will correctly display a Mess-DOS batch file on Unix. It will, however,
note the origin of the file in the left end of the mode line. There are
tools within emacs to convert line endings; you get to read the manual to
find them.





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

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