Skip to content

Commit f7277d1

Browse files
authored
fix: return detached signature functionality (#244)
1 parent d525efb commit f7277d1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tui/email_view.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ func NewEmailView(email fetcher.Email, emailIndex, width, height int, mailbox Ma
5353
smimeTrusted = att.SMIMEVerified
5454
isEncrypted = att.IsSMIMEEncrypted
5555
} else if att.IsSMIMESignature || att.Filename == "smime.p7s" || att.Filename == "smime.p7m" || strings.HasPrefix(att.MIMEType, "application/pkcs7") {
56+
// Extract S/MIME status from detached signature attachments
57+
if att.IsSMIMESignature && !isSMIME {
58+
isSMIME = true
59+
smimeTrusted = att.SMIMEVerified
60+
}
5661
// Skip UI rendering
5762
} else {
5863
filteredAtts = append(filteredAtts, att)

0 commit comments

Comments
 (0)