summaryrefslogtreecommitdiff
path: root/lib/kolab_sync_data_email.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_sync_data_email.php')
-rw-r--r--lib/kolab_sync_data_email.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 381c3cf..8c3a820 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -124,9 +124,9 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
{
$message = $this->getObject($serverId);
- if (empty($message)) {
- // @TODO: exception
- return;
+ // error (message doesn't exist?)
+ if (empty($message) || empty($message->headers)) {
+ throw new Syncroton_Exception_NotFound("Message $serverId not found");
}
$msg = $this->parseMessageId($serverId);