Extracting content info from email body. More...
#include "config.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "lib.h"
Go to the source code of this file.
Functions | |
void | mutt_update_content_info (struct Content *info, struct ContentState *s, char *buf, size_t buflen) |
Cache some info about an email. | |
struct Content * | mutt_get_content_info (const char *fname, struct Body *b, struct ConfigSubset *sub) |
Analyze file to determine MIME encoding to use. | |
Extracting content info from email body.
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 content_info.c.
void mutt_update_content_info | ( | struct Content * | info, |
struct ContentState * | s, | ||
char * | buf, | ||
size_t | buflen | ||
) |
Cache some info about an email.
info | Info about an Attachment |
s | Info about the Body of an email |
buf | Buffer for the result |
buflen | Length of the buffer |
Definition at line 49 of file content_info.c.
struct Content * mutt_get_content_info | ( | const char * | fname, |
struct Body * | b, | ||
struct ConfigSubset * | sub | ||
) |
Analyze file to determine MIME encoding to use.
fname | File to examine |
b | Body to update |
sub | Config Subset |
ptr | Newly allocated Content |
Also set the body charset, sometimes, or not.
Definition at line 188 of file content_info.c.