projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
we have buffers, add an API to readln directly in a buffer instead of implementing...
[apps/madmutt.git]
/
lib-mime
/
crypt.c
diff --git
a/lib-mime/crypt.c
b/lib-mime/crypt.c
index
16cbebd
..
af64a2c
100644
(file)
--- a/
lib-mime/crypt.c
+++ b/
lib-mime/crypt.c
@@
-32,9
+32,8
@@
#include <lib-lib/lib-lib.h>
#include <lib-lib/lib-lib.h>
-#include <lib-crypt/crypt.h>
-
#include "mime.h"
#include "mime.h"
+#include "crypt.h"
int mutt_is_multipart_signed(BODY * b)
{
int mutt_is_multipart_signed(BODY * b)
{
@@
-85,11
+84,10
@@
int mutt_is_application_pgp (BODY * m)
int subtype = mime_which_token(m->subtype, -1);
if (m->type == TYPEAPPLICATION) {
int subtype = mime_which_token(m->subtype, -1);
if (m->type == TYPEAPPLICATION) {
- if (subtype
!= MIME_PGP || subtype !
= MIME_X_PGP_MESSAGE) {
+ if (subtype
== MIME_PGP || subtype =
= MIME_X_PGP_MESSAGE) {
int tok;
tok = mime_which_token(parameter_getval(m->parameter, "x-action"), -1);
int tok;
tok = mime_which_token(parameter_getval(m->parameter, "x-action"), -1);
-
if (tok == MIME_SIGN || tok == MIME_SIGNCLEAR)
t |= PGPSIGN;
if (tok == MIME_SIGN || tok == MIME_SIGNCLEAR)
t |= PGPSIGN;
@@
-111,17
+109,14
@@
int mutt_is_application_pgp (BODY * m)
if (m->type == TYPETEXT && subtype == MIME_PLAIN) {
const char *p;
if (m->type == TYPETEXT && subtype == MIME_PLAIN) {
const char *p;
- if ((p = parameter_getval(m->parameter, "x-mutt-action"))
- || (p = parameter_getval(m->parameter, "x-action"))
- || (p = parameter_getval(m->parameter, "action")))
- {
+ if ((p = parameter_getval(m->parameter, "x-action"))) {
int tok = mime_which_token(p, -1);
switch (tok) {
int tok = mime_which_token(p, -1);
switch (tok) {
- case MIME_PGP_SIGN:
+ case MIME_PGP_SIGN
ED
:
t |= PGPSIGN;
break;
t |= PGPSIGN;
break;
- case MIME_PGP_ENCRYPT:
+ case MIME_PGP_ENCRYPT
ED
:
t |= PGPENCRYPT;
break;
t |= PGPENCRYPT;
break;