CVS

- Fixed crash when unable to delete a entry.
(Thanks to Ron)

- Fixed handling of the returned uidret. Used strncpy
since memory is allocated in the engine. Fixed bug with
duplication and entries not being deleted
(Thanks to Jonas Birme)

- Added check if uidretlen != NULL. Crashed otherwise
if a entry was deleted
