Look for inline (non-MIME) PGP content.
More...
Look for inline (non-MIME) PGP content.
- Parameters
-
fp | File pointer to the current attachment |
b | Body of email to check |
just_one | If true, just check one email part |
- Return values
-
true | It's an inline PGP email |
false | It's not inline, or an error |
◆ pgp_gpgme_check_traditional()
bool pgp_gpgme_check_traditional |
( |
FILE * |
fp, |
|
|
struct Body * |
b, |
|
|
bool |
just_one |
|
) |
| |
Implements CryptModuleSpecs::pgp_check_traditional() -.
Definition at line 2223 of file crypt_gpgme.c.
2224{
2225 bool rc = false;
2226 for (; b; b = b->
next)
2227 {
2231 {
2233 if (r)
2234 rc = (rc || r);
2235 else
2237 }
2238
2239 if (just_one)
2240 break;
2241 }
2242 return rc;
2243}
SecurityFlags mutt_is_application_pgp(struct Body *b)
Does the message use PGP?
static int pgp_check_traditional_one_body(FILE *fp, struct Body *b)
Check one inline PGP body part.
bool pgp_gpgme_check_traditional(FILE *fp, struct Body *b, bool just_one)
Implements CryptModuleSpecs::pgp_check_traditional() -.
@ TYPE_TEXT
Type: 'text/*'.
#define is_multipart(body)
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
struct Body * parts
parts of a multipart or message/rfc822
struct Body * next
next attachment in the list
unsigned int type
content-type primary type, ContentType
◆ pgp_class_check_traditional()
bool pgp_class_check_traditional |
( |
FILE * |
fp, |
|
|
struct Body * |
b, |
|
|
bool |
just_one |
|
) |
| |
Implements CryptModuleSpecs::pgp_check_traditional() -.
Definition at line 853 of file pgp.c.
854{
855 bool rc = false;
856 int r;
857 for (; b; b = b->
next)
858 {
862 {
864 if (r)
865 rc = rc || r;
866 else
868 }
869
870 if (just_one)
871 break;
872 }
873
874 return rc;
875}
bool pgp_class_check_traditional(FILE *fp, struct Body *b, bool just_one)
Implements CryptModuleSpecs::pgp_check_traditional() -.
static bool pgp_check_traditional_one_body(FILE *fp, struct Body *b)
Check the body of an inline PGP message.