mm_mimeutil.c File Reference

#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include "mm_internal.h"

Defines

#define MM_DATE_LENGTH   50

Functions

int mm_mimeutil_gendate (char **result)
int mm_mimeutil_genboundary (char *prefix, size_t length, char **result)

Detailed Description

This module contains various MIME related utility functions.

Function Documentation

int mm_mimeutil_gendate ( char **  result  ) 

Generates an RFC 2822 conform date string

Parameters:
timezone Whether to include timezone information
Returns:
A pointer to the actual date string
Note:
The pointer returned must be freed some time
This function generates an RFC 2822 conform date string to use in message headers. It allocates memory to hold the string and returns a pointer to it. The generated date is in the format (example):

Thu, 25 December 2003 16:35:22 +0100 (CET)

This function dynamically allocates memory and returns a pointer to it. This memory should be released with free() once not needed anymore.


Generated on Thu Mar 29 17:59:08 2007 for MiniMIME by  doxygen 1.5.1