mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Mail: Fetch mails with their sequence number
The FETCH response doesn't have return the sequence in order, or at very least one of my mail providers doesn't do it.
This commit is contained in:
parent
720c27efbd
commit
0132c30eda
3 changed files with 11 additions and 3 deletions
|
@ -57,5 +57,7 @@ GUI::Variant InboxModel::data(GUI::ModelIndex const& index, GUI::ModelRole role)
|
|||
if (!value.seen)
|
||||
return Gfx::FontDatabase::default_font().bold_variant();
|
||||
}
|
||||
if (role == static_cast<GUI::ModelRole>(InboxModelCustomRole::Sequence))
|
||||
return value.sequence_number;
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue