if (mmap == NULL)
return mail_index_modseq_get_head(view->index);
- rec = mail_index_lookup_full(view, seq, &map);
+ rec = mail_index_lookup_full(view, seq, &map, NULL);
if (!mail_index_map_get_ext_idx(map, view->index->modseq_ext_id,
&ext_map_idx)) {
/* not enabled yet */
{
struct mail_index_map *map;
- return mail_index_lookup_full(view, seq, &map);
+ return mail_index_lookup_full(view, seq, &map, NULL);
}
const struct mail_index_record *
mail_index_lookup_full(struct mail_index_view *view, uint32_t seq,
- struct mail_index_map **map_r)
+ struct mail_index_map **map_r, bool *expunged_r)
{
- return view->v.lookup_full(view, seq, map_r, NULL);
+ return view->v.lookup_full(view, seq, map_r, expunged_r);
}
bool mail_index_is_expunged(struct mail_index_view *view, uint32_t seq)
mail_index_lookup(struct mail_index_view *view, uint32_t seq);
const struct mail_index_record *
mail_index_lookup_full(struct mail_index_view *view, uint32_t seq,
- struct mail_index_map **map_r);
+ struct mail_index_map **map_r, bool *expunged_r);
/* Returns TRUE if the given message has already been expunged from index. */
bool mail_index_is_expunged(struct mail_index_view *view, uint32_t seq);
/* Note that returned keyword indexes aren't sorted. */