Back to index

courier  0.68.2
Functions
comrwmsg7bit.c File Reference
#include "courier.h"
#include "rw.h"
#include "rwint.h"
#include "rfc2045/rfc2045.h"

Go to the source code of this file.

Functions

static int call_rw_rewrite_msgheaders (const char *p, int l, void *msginfo)
int rw_rewrite_msg_7bit (int fp, struct rfc2045 *rfcp, int(*writefunc)(const char *p, unsigned l, void *), void(*rewritefunc)(struct rw_info *, void(*)(struct rw_info *), void *), void *arg)

Function Documentation

static int call_rw_rewrite_msgheaders ( const char *  p,
int  l,
void *  msginfo 
) [static]

Definition at line 12 of file comrwmsg7bit.c.

{
       if (rw_rewrite_msgheaders(p, l, (struct rwmsginfo *)msginfo))
              return (0);
       return (l);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int rw_rewrite_msg_7bit ( int  fp,
struct rfc2045 rfcp,
int(*)(const char *p, unsigned l, void *)  writefunc,
void(*)(struct rw_info *, void(*)(struct rw_info *), void *)  rewritefunc,
void *  arg 
)

Definition at line 20 of file comrwmsg7bit.c.

{
       struct rwmsginfo rwinfo;
       int    i, j;
       struct rfc2045src *src;

       rw_rewrite_msg_init(&rwinfo, writefunc, rewritefunc, arg);

       src=rfc2045src_init_fd(fp);

       if (src)
       {
              j=rfc2045_rewrite_func(rfcp, src,
                                   &call_rw_rewrite_msgheaders, &rwinfo,
                                   "courier " COURIER_VERSION);
              rfc2045src_deinit(src);
       }
       else
              j= -1;

       if ((i=rw_rewrite_msg_finish(&rwinfo)) != 0)
              j=i;
       return (j);
}

Here is the call graph for this function:

Here is the caller graph for this function: