Back to index

courier  0.68.2
Functions
comdsn.c File Reference
#include "courier.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

char * config_dsnfrom ()
size_t config_dsnlimit ()

Function Documentation

char* config_dsnfrom ( )

Definition at line 10 of file comdsn.c.

{
char   *f=config_localfilename("dsnfrom");
char   *p=config_read1l(f);
static const char defaultdsnfrom[]="\"Courier mail server at %s\" <@>";

       free(f);
       if (!p)
       {
       const char *me=config_me();

              p=courier_malloc(sizeof(defaultdsnfrom)+strlen(me));
              sprintf(p, defaultdsnfrom, me);
       }
       return (p);
}

Here is the call graph for this function:

Here is the caller graph for this function:

size_t config_dsnlimit ( )

Definition at line 27 of file comdsn.c.

{
char   *f=config_localfilename("dsnlimit");
char   *p=config_read1l(f);
size_t l=32768;

       if (p)
       {
              l=atol(p);
              free(p);
       }
       return (l);
}

Here is the call graph for this function:

Here is the caller graph for this function: