Logo Search packages:      
Sourcecode: nbsmtp version File versions  Download package

fileconfig.c File Reference

Detailed Description

This file parses the nbsmtprc file.

Fernando J. Pereda <ferdy@ferdyx.org>

Ricardo Cervera Navarro <ricardo@zonasiete.org>

This is part of nbsmtp. nbsmtp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

nbsmtp 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 nbsmtp; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

See COPYING for details.

Definition in file fileconfig.c.

#include <string.h>
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <errno.h>
#include <pwd.h>
#include "servinfo.h"
#include "nbsmtp.h"
#include "util.h"
#include "fileconfig.h"

Go to the source code of this file.


int fileconfig_parse (const char *path, servinfo_t *serverinfo)
 Parses the configuration file.
int fileconfig_parse_all (bool_t read_syswide, bool_t read_localconf, servinfo_t *serverinfo)
 Parses a list of possible configuration files, this function is meant to avoid another modules (such as original) having to deal with several fileconfig calls.

Generated by  Doxygen 1.6.0   Back to index