src/message_api.c
changeset 375 66e48c55cd7a
parent 371 2b34176e3fd7
child 377 ef2b8046cb3c
     1.1 --- a/src/message_api.c	Sun Oct 11 15:28:20 2015 +0200
     1.2 +++ b/src/message_api.c	Wed Oct 14 01:58:15 2015 +0200
     1.3 @@ -778,8 +778,7 @@
     1.4          if (bl->mime_type == NULL ||
     1.5                      is_mime_type(bl, "application/octet-stream")) {
     1.6              if (is_fileending(bl, ".pgp") || is_fileending(bl, ".gpg") ||
     1.7 -                    is_fileending(bl, ".key") ||
     1.8 -                    string_equality(bl->filename, "key.asc"))
     1.9 +                    is_fileending(bl, ".key") || is_fileending(bl, ".asc"))
    1.10                  import_key(session, bl->value, bl->size);
    1.11          }
    1.12          else if (is_mime_type(bl, "application/pgp-keys")) {