diff options
-rw-r--r-- | lib/indexformat.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/indexformat.go b/lib/indexformat.go index 8a329db..9e7a805 100644 --- a/lib/indexformat.go +++ b/lib/indexformat.go @@ -177,10 +177,12 @@ func ParseIndexFormat(conf *config.AercConfig, number int, readFlag = "N" // message is new } else if flag == imap.AnsweredFlag { readFlag = "r" // message has been replied to - } else if flag == imap.DeletedFlag { + } + if flag == imap.DeletedFlag { delFlag = "D" // TODO: check if attachments - } else if flag == imap.FlaggedFlag { + } + if flag == imap.FlaggedFlag { flaggedFlag = "!" } // TODO: check gpg stuff |