Back to index

courier  0.68.2
Functions | Variables
comesmtpidstring.c File Reference
#include "courier.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

const char * config_esmtpgreeting ()

Variables

static const char * esmtpidstring

Function Documentation

const char* config_esmtpgreeting ( )

Definition at line 12 of file comesmtpidstring.c.

{
       if (!esmtpidstring)
       {
       char   *f=config_localfilename("esmtpgreeting");

              if ((esmtpidstring=readfile(f, 0)) == 0)
              {
              const char *me=config_me();

                     esmtpidstring=strcat(strcpy(courier_malloc(
                            strlen(me)+sizeof(" ESMTP")), me), " ESMTP");
              }
              free(f);
       }
       return (esmtpidstring);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char* esmtpidstring [static]

Definition at line 10 of file comesmtpidstring.c.