>The CAPS do not bother me, nor does the switch between > >Content-Type: text/plain; charset="us-ascii" >and >Content-Type: multipart/mixed; boundary="NextPart" > >but that little old space does. And this is not new. > >Any ideas? Learn about regular expressions? Helpfully, John PS: the state of the art in the regard seems to be procmail, an amazing piece of work in daily use around the world, with source code essentially unchanged in over 20 years.