https://github.com/owncloud/core/blob/master/lib/private/share/mailnotifications.php#L110