Fixed a bug in addMsg. The stream was told to seek to the end -2, but if the file was size 0 (just created), this would fail, which would screw up the ferror check later in the code.
Fixed a bug in addMsg. The stream was told to seek to the end -2, but if the file was size 0 (just created), this would fail, which would screw up the ferror check later in the code.

The seek to the end -2 shouldn't be done if the file is less than 2

svn path=/trunk/kdenetwork/kmail/; revision=55665

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi