procmail
[Top] [All Lists]

Re: (OT) misunderstood regexp

2005-07-14 08:00:07
   In regards to the question as to what is at the end of
the regexp in the file, I took the liberty of testing a
few files, using webmin, as Vincent states he is using.

   A textfile created in webmin w/o the DOS checkbox
checked will contain (13)(10) as it's newline. Vim
detects that this is a DOS file, but does not show
the ^M.

   A textfile created in webmin w/ the DOS checkbox
checked will contain (13)(13)(10) as it's newline. Vim
detects that this is a DOS file, and does show the ^M.

   A textfile created by unix, then edited with the
webmin editor w/o the DOS checkbox checked will contain
(10) as it's newline. Vim does not detect this as a
DOS file, and does not show the ^M.

   A textfile created by unix, then edited with the
webmind edit w/ the DOS checkbox checked will contain
(13)(10) as it's newline. Vim does not detect this as
a DOS file, but does show the ^M.

   So, if you created the file in webmin, but didn't
check DOS, it will still contain (13)(10) as it's newline,
which proves that Ruud's original assumption was correct.

   One way to fix this in webmin is to go to
Other->Command Shell, then issue this command:
cat /dos/filename | tr -d '\15\32' > /new/unix/filename

   /dos/filename, of course, being the original file
with the dos newlines, and /new/unix/filename, being the
new unix file to create.

HTH!

brad/mr duck


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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