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 2236 of file crypt_gpgme.c.
2237{
2238 bool rc = false;
2239 for (; b; b = b->
next)
2240 {
2242 {
2244 }
2246 {
2248 if (r)
2249 rc = (rc || r);
2250 else
2252 }
2253
2254 if (just_one)
2255 break;
2256 }
2257 return rc;
2258}
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 871 of file pgp.c.
872{
873 bool rc = false;
874 int r;
875 for (; b; b = b->
next)
876 {
878 {
880 }
882 {
884 if (r)
885 rc = rc || r;
886 else
888 }
889
890 if (just_one)
891 break;
892 }
893
894 return rc;
895}
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.