Skip to content

Commit

Permalink
emsmdb: ignore missing PR_LAST_MODIFICATION_TIME during icsdown transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Nov 29, 2023
1 parent 0442e1a commit c66914b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions exch/emsmdb/icsdownctx_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,10 @@ static BOOL icsdownctx_object_extract_msgctntinfo(MESSAGE_CONTENT *pmsgctnt,
common_util_remove_propvals(&pmsgctnt->proplist, PR_SOURCE_KEY);

auto ts = pmsgctnt->proplist.get<const uint64_t>(PR_LAST_MODIFICATION_TIME);
if (ts == nullptr) {
mlog(LV_INFO, "I-2363: ICS: cannot transfer msg %llxh without PR_LAST_MODIFICATION_TIME",
LLU{message_id});
return FALSE;
}
uint64_t now = rop_util_unix_to_nttime(time(nullptr));
if (ts == nullptr)
/* Faking it seems to work */
ts = &now;
pchgheader->emplace_back(PR_LAST_MODIFICATION_TIME, ts);

bin = pmsgctnt->proplist.get<BINARY>(PR_CHANGE_KEY);
Expand Down

0 comments on commit c66914b

Please sign in to comment.