Representation of the body of an email. More...
#include "config.h"
#include <stdbool.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "body.h"
#include "email.h"
#include "envelope.h"
#include "mime.h"
#include "parameter.h"
Go to the source code of this file.
Functions | |
struct Body * | mutt_body_new (void) |
Create a new Body. | |
void | mutt_body_free (struct Body **ptr) |
Free a Body. | |
bool | mutt_body_cmp_strict (const struct Body *b1, const struct Body *b2) |
Strictly compare two email Body's. | |
char * | mutt_body_get_charset (struct Body *b, char *buf, size_t buflen) |
Get a body's character set. | |
Representation of the body of an email.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file body.c.
struct Body * mutt_body_new | ( | void | ) |
void mutt_body_free | ( | struct Body ** | ptr | ) |
Free a Body.
[out] | ptr | Body to free |
Definition at line 58 of file body.c.
Strictly compare two email Body's.
true | Body's are strictly identical |
Definition at line 110 of file body.c.
char * mutt_body_get_charset | ( | struct Body * | b, |
char * | buf, | ||
size_t | buflen | ||
) |
Get a body's character set.
ptr | Buffer containing character set |
NULL | On error, or if not a text type |
Definition at line 133 of file body.c.