NeoMutt  2024-04-25-97-g7d2481
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
content.h
Go to the documentation of this file.
1
24#ifndef MUTT_EMAIL_CONTENT_H
25#define MUTT_EMAIL_CONTENT_H
26
27#include <stdbool.h>
28#include <stddef.h>
29
35struct Content
36{
37 long hibin;
38 long lobin;
39 long nulbin;
40 long crlf;
41 long ascii;
42 long linemax;
43 bool space : 1;
44 bool binary : 1;
45 bool from : 1;
46 bool dot : 1;
47 bool cr : 1;
48};
49
57{
58 bool from;
60 bool dot;
61 int linelen;
62 bool was_cr;
63};
64
65#endif /* MUTT_EMAIL_CONTENT_H */
Info about the body of an email.
Definition: content.h:57
bool was_cr
Was the last character CR?
Definition: content.h:62
int whitespace
Number of trailing whitespaces.
Definition: content.h:59
bool from
Is the current line a prefix of "From "?
Definition: content.h:58
int linelen
Length of the current line.
Definition: content.h:61
bool dot
Was the last character a dot?
Definition: content.h:60
Info about an attachment.
Definition: content.h:36
long crlf
\r and \n characters
Definition: content.h:40
long hibin
8-bit characters
Definition: content.h:37
bool cr
Has CR, even when in a CRLF pair.
Definition: content.h:47
bool space
Whitespace at the end of lines?
Definition: content.h:43
long ascii
Number of ascii chars.
Definition: content.h:41
bool binary
Long lines, or CR not in CRLF pair.
Definition: content.h:44
bool from
Has a line beginning with "From "?
Definition: content.h:45
long nulbin
Null characters (0x0)
Definition: content.h:39
long linemax
Length of the longest line in the file.
Definition: content.h:42
long lobin
Unprintable 7-bit chars (eg., control chars)
Definition: content.h:38
bool dot
Has a line consisting of a single dot?
Definition: content.h:46