Backport r952440 by tmcguire from trunk to the 4.2 branch:
Don't add empty headers, even if they are mandatory, because that would cause an empty line in
the header, which was later parsed as a header/body separator.
Add a test for this.
svn path=/branches/KDE/4.2/kdepimlibs/; revision=953497