- && (mutt_strcmp (msg->content->subtype, "encrypted") == 0 ||
- mutt_strcmp (msg->content->subtype, "signed") == 0))
- {
- if (clear_content->type == TYPEMULTIPART)
- {
- if(!(msg->security & ENCRYPT) && (msg->security & SIGN))
- {
- /* save initial signature and attachments */
- save_sig = msg->content->parts->next;
- save_parts = clear_content->parts->next;
- }
-
- /* this means writing only the main part */
- msg->content = clear_content->parts;
-
- if (mutt_protect (msg, cur, pgpkeylist) == -1)
- {
- /* we can't do much about it at this point, so
- * fallback to saving the whole thing to fcc
- */
- msg->content = tmpbody;
- save_sig = NULL;
- goto full_fcc;
- }
-
- save_content = msg->content;
- }
+ && (str_cmp (msg->content->subtype, "encrypted") == 0 ||
+ str_cmp (msg->content->subtype, "signed") == 0)) {
+ if (clear_content->type == TYPEMULTIPART) {
+ if (!(msg->security & ENCRYPT) && (msg->security & SIGN)) {
+ /* save initial signature and attachments */
+ save_sig = msg->content->parts->next;
+ save_parts = clear_content->parts->next;
+ }
+
+ /* this means writing only the main part */
+ msg->content = clear_content->parts;
+
+ if (mutt_protect (msg, pgpkeylist) == -1) {
+ /* we can't do much about it at this point, so
+ * fallback to saving the whole thing to fcc
+ */
+ msg->content = tmpbody;
+ save_sig = NULL;
+ goto full_fcc;
+ }
+
+ save_content = msg->content;
+ }