> Can anyone explain what is going on? Sorry if the above was not clear. I suppose I should have asked: why does the python quoted printable encoder not encode the trailing whitespace on each line - a proceedure which is (AFAICS) standard. Best wishes, Nicholas