libmsngr  1.1
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
msngr_mail.c File Reference

Mail Functions. More...

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/wait.h>
#include <unistd.h>
#include "messenger.h"

Go to the source code of this file.

Macros

#define MAIL_BODY_GROWTH_SIZE   1024
 Mail body growth size.
#define MAIL_BODY_RESERVED_SIZE   80
 Amount of allocated space to reserve at the end of the mail body.

Functions

Mailmail_create (const char *from, const char *to, const char *cc, const char *subject, int flags, size_t errlen, char *errstr)
 Create a new mail message.
void mail_destroy (Mail *mail)
 Free all memory used by a Mail message.
void mail_clear_error (Mail *mail)
 Clear the last error message for a Mail message.
const char * mail_get_error (Mail *mail)
 Get the last error message for a Mail message.
void mail_printf (Mail *mail, const char *format,...)
 Print a message to a mail message.
void mail_vprintf (Mail *mail, const char *format, va_list args)
 Print a message to a mail message.
int mail_send (Mail *mail)
 Send a mail message.
void mail_set_flags (Mail *mail, int flags)
 Set control flags for a mail message.
void mail_unset_flags (Mail *mail, int flags)
 Unset control flags for a mail message.

Detailed Description

Mail Functions.

Definition in file msngr_mail.c.


Macro Definition Documentation

#define MAIL_BODY_GROWTH_SIZE   1024

Mail body growth size.

Definition at line 40 of file msngr_mail.c.

#define MAIL_BODY_RESERVED_SIZE   80

Amount of allocated space to reserve at the end of the mail body.

Definition at line 43 of file msngr_mail.c.