Reintroduce subset of "various fixes" pull request

Failing to send email is due to misbehavior between openchange layer and SOGo backend
Once this is fixed, I will propose ModifyRecipients patch again
Can you add a check on talloc_asprintf retval?