"Fossies" - the Fresh Open Source Software Archive

Member "msmtp-1.8.5/src/aliases.h" (11 Jun 2018, 1646 Bytes) of package /linux/privat/msmtp-1.8.5.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "aliases.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * aliases.h
    3  *
    4  * This file is part of msmtp, an SMTP client.
    5  *
    6  * Copyright (C) 2011
    7  * Scott Shumate <sshumate@austin.rr.com>
    8  *
    9  *   This program is free software; you can redistribute it and/or modify
   10  *   it under the terms of the GNU General Public License as published by
   11  *   the Free Software Foundation; either version 3 of the License, or
   12  *   (at your option) any later version.
   13  *
   14  *   This program is distributed in the hope that it will be useful,
   15  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   16  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   17  *   GNU General Public License for more details.
   18  *
   19  *   You should have received a copy of the GNU General Public License
   20  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
   21  */
   22 
   23 #ifndef ALIASES_H
   24 #define ALIASES_H
   25 
   26 #include "list.h"
   27 
   28 /*
   29  * If a function with an 'errstr' argument returns a value != ALIASES_EOK,
   30  * '*errstr' either points to an allocates string containing an error
   31  * description or is NULL.
   32  * If such a function returns ALIASES_EOK, 'errstr' will not be changed.
   33  */
   34 #define ALIASES_EOK        0       /* no error */
   35 #define ALIASES_ECANTOPEN  1       /* Cannot open file */
   36 #define ALIASES_EIO        2       /* Input/output error */
   37 #define ALIASES_EPARSE     3       /* Parse error */
   38 
   39 /*
   40  * aliases()
   41  *
   42  * Read 'aliases' and replace all recipients matching an alias with
   43  * its list of addresses.
   44  * Used error codes: ALIASES_EOK, ALIASES_ECANTOPEN, ALIASES_EIO,
   45  * ALIASES_EPARSE, ALIASES_EINSECURE
   46  */
   47 int aliases_replace(const char *aliases, list_t *recipient_list, char **errstr);
   48 
   49 #endif