NeoMutt  2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pgp_check_traditional()

Look for inline (non-MIME) PGP content. More...

Collaboration diagram for pgp_check_traditional():

Functions

bool pgp_gpgme_check_traditional (FILE *fp, struct Body *b, bool just_one)
 Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.
bool pgp_class_check_traditional (FILE *fp, struct Body *b, bool just_one)
 Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.

Detailed Description

Look for inline (non-MIME) PGP content.

Parameters
fpFile pointer to the current attachment
bBody of email to check
just_oneIf true, just check one email part
Return values
trueIt's an inline PGP email
falseIt's not inline, or an error

Function Documentation

◆ pgp_gpgme_check_traditional()

bool pgp_gpgme_check_traditional ( FILE * fp,
struct Body * b,
bool just_one )

Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.

Definition at line 2304 of file crypt_gpgme.c.

2305{
2306 bool rc = false;
2307 for (; b; b = b->next)
2308 {
2309 if (!just_one && is_multipart(b))
2310 {
2311 rc = (pgp_gpgme_check_traditional(fp, b->parts, false) || rc);
2312 }
2313 else if (b->type == TYPE_TEXT)
2314 {
2316 if (r)
2317 rc = (rc || r);
2318 else
2319 rc = (pgp_check_traditional_one_body(fp, b) || rc);
2320 }
2321
2322 if (just_one)
2323 break;
2324 }
2325 return rc;
2326}
SecurityFlags mutt_is_application_pgp(const struct Body *b)
Does the message use PGP?
Definition crypt.c:549
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)
Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.
@ TYPE_TEXT
Type: 'text/*'.
Definition mime.h:38
#define is_multipart(body)
Check if a body part is multipart or a message container.
Definition mime.h:84
uint16_t SecurityFlags
Definition lib.h:104
struct Body * parts
parts of a multipart or message/rfc822
Definition body.h:73
struct Body * next
next attachment in the list
Definition body.h:72
unsigned int type
content-type primary type, ContentType
Definition body.h:40
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pgp_class_check_traditional()

bool pgp_class_check_traditional ( FILE * fp,
struct Body * b,
bool just_one )

Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.

Definition at line 876 of file pgp.c.

877{
878 bool rc = false;
879 int r;
880 for (; b; b = b->next)
881 {
882 if (!just_one && is_multipart(b))
883 {
884 rc = pgp_class_check_traditional(fp, b->parts, false) || rc;
885 }
886 else if (b->type == TYPE_TEXT)
887 {
889 if (r)
890 rc = rc || r;
891 else
892 rc = pgp_check_traditional_one_body(fp, b) || rc;
893 }
894
895 if (just_one)
896 break;
897 }
898
899 return rc;
900}
bool pgp_class_check_traditional(FILE *fp, struct Body *b, bool just_one)
Look for inline (non-MIME) PGP content - Implements CryptModuleSpecs::pgp_check_traditional() -.
Definition pgp.c:876
static bool pgp_check_traditional_one_body(FILE *fp, struct Body *b)
Check the body of an inline PGP message.
Definition pgp.c:809
Here is the call graph for this function:
Here is the caller graph for this function: