NeoMutt  2024-04-25-34-g585158
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 2239 of file crypt_gpgme.c.

2240{
2241 bool rc = false;
2242 for (; b; b = b->next)
2243 {
2244 if (!just_one && is_multipart(b))
2245 {
2246 rc = (pgp_gpgme_check_traditional(fp, b->parts, false) || rc);
2247 }
2248 else if (b->type == TYPE_TEXT)
2249 {
2251 if (r)
2252 rc = (rc || r);
2253 else
2254 rc = (pgp_check_traditional_one_body(fp, b) || rc);
2255 }
2256
2257 if (just_one)
2258 break;
2259 }
2260 return rc;
2261}
SecurityFlags mutt_is_application_pgp(const struct Body *b)
Does the message use PGP?
Definition: crypt.c:534
static int pgp_check_traditional_one_body(FILE *fp, struct Body *b)
Check one inline PGP body part.
Definition: crypt_gpgme.c:2174
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: crypt_gpgme.c:2239
@ TYPE_TEXT
Type: 'text/*'.
Definition: mime.h:38
#define is_multipart(body)
Definition: mime.h:82
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: lib.h:76
struct Body * parts
parts of a multipart or message/rfc822
Definition: body.h:72
struct Body * next
next attachment in the list
Definition: body.h:71
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 869 of file pgp.c.

870{
871 bool rc = false;
872 int r;
873 for (; b; b = b->next)
874 {
875 if (!just_one && is_multipart(b))
876 {
877 rc = pgp_class_check_traditional(fp, b->parts, false) || rc;
878 }
879 else if (b->type == TYPE_TEXT)
880 {
882 if (r)
883 rc = rc || r;
884 else
885 rc = pgp_check_traditional_one_body(fp, b) || rc;
886 }
887
888 if (just_one)
889 break;
890 }
891
892 return rc;
893}
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:869
static bool pgp_check_traditional_one_body(FILE *fp, struct Body *b)
Check the body of an inline PGP message.
Definition: pgp.c:801
+ Here is the call graph for this function:
+ Here is the caller graph for this function: