apple mail workaround less narrow
authorVolker Birk <vb@pep-project.org>
Thu, 19 May 2016 17:54:29 +0200
changeset 668293e7f009a3d
parent 667 a3615d44326a
child 669 34d1bc5ebb64
apple mail workaround less narrow
src/message_api.c
     1.1 --- a/src/message_api.c	Thu May 19 12:26:30 2016 +0200
     1.2 +++ b/src/message_api.c	Thu May 19 17:54:29 2016 +0200
     1.3 @@ -841,13 +841,8 @@
     1.4  
     1.5          // workaround for Apple Mail bugs
     1.6          if (is_mime_type(bl, "application/x-apple-msg-attachment")) {
     1.7 -            if (is_fileending(bl, ".asc")) {
     1.8 -                if (strlen(bl->filename) == 14 &&
     1.9 -                        bl->filename[0] == '0' && bl->filename[1] == 'x')
    1.10 -                    import_key(session, bl->value, bl->size);
    1.11 -                else if (strlen(bl->filename) == 12)
    1.12 -                    import_key(session, bl->value, bl->size);
    1.13 -            }
    1.14 +            if (is_fileending(bl, ".asc"))
    1.15 +                import_key(session, bl->value, bl->size);
    1.16          }
    1.17          else if (bl->mime_type == NULL ||
    1.18                      is_mime_type(bl, "application/octet-stream")) {