mu4e: avoid calendar charset error

Fixes #issue #1832.

HT: tpeacock19.
This commit is contained in:
Dirk-Jan C. Binnema 2020-11-11 21:47:23 +02:00
parent 8c29210083
commit 48424734e9
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@
(delete-region (point-min) (point-max))
(insert reply)
(fold-icalendar-buffer)
(when (string= (downcase charset) "utf-8")
(when (and charset (string= (downcase charset) "utf-8"))
(decode-coding-region (point-min) (point-max) 'utf-8))
(mu4e-icalendar-reply-ical msg event status (buffer-name)))