If an attachment name is way too long, the attachment name label forces
the composer widget to become too wide which breaks on smaller screens.
To fix this, ellipsize the label if needed. Since the user has probably
just chosen the attachment, they probably have an idea which attachment
it is anyway, so we can do this instead of wrapping. Since the file
extension can make a big difference, we ellipsize in the middle.
When a label is ellipsized, we also add the label as a tooltip in case a
user wants to double check the attachment name though.
Fixes: https://gitlab.gnome.org/GNOME/geary/-/issues/1577
- We are already showing an infobar for CONNECTION_FAILED with a 'Retry'
button that will requeue all outbox messages
- For UNRECOVERABLE_ERROR, just ignore them until next engine restart
Fix#1258#1482
Messages may have been marked as read while waiting in
open_remote_session_locked().
Unsure we handle the diff when remote session opened.
Fix#1023Fix#364
When folder session is claimed, that can lock for some ms.
It can be tricky to debug issues happening during this small random delay.
Use this build option to force the delay.
Marking a message with same command is legit in those scenarios:
- Previous mark command failed, we do not want Geary to be unable to
mark message again
- Multiple clients connected to same IMAP box:
- Geary marked message as read
- Another client marked it as unread
- Geary is unable to mark it as read again
When using virtual namespaces in Dovecot, a LIST command will return
mulitple entries for virtual folder. Always use flags from last entry.
```
a005 LIST "" "*"
* LIST (\HasChildren) "." virtual
* LIST (\HasNoChildren \UnMarked) "." Templates
* LIST (\HasNoChildren \UnMarked \Trash) "." Trash
* LIST (\HasNoChildren \UnMarked \Junk) "." Junk
* LIST (\HasNoChildren \UnMarked \Drafts) "." Drafts
* LIST (\HasNoChildren \UnMarked) "." Archive
* LIST (\HasNoChildren \UnMarked \Sent) "." Sent
* LIST (\HasNoChildren \Flagged) "." virtual.Favoris
* LIST (\Noselect \HasChildren) "." virtual
* LIST (\HasNoChildren \Flagged) "." virtual.Favoris
* LIST (\HasNoChildren) "." INBOX
```
Fix errors like: `Unable to get STATUS of virtual: a008 NO Mailbox doesn't exist: virtual`