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

void print_help ( char *  prog  ) 

Prints information on how to use nbsmtp and some Copyright info.

Parameters:
[in] prog A pointer to argv[0]

Definition at line 214 of file util.c.

References authors, and print_usage().

Referenced by main(), and parse_options().

{
      int i = 0;

      printf("nbSMTP %s\n\n",PACKAGE_VERSION);

      printf("Features compiled-in: ");

      puts(""
#ifdef HAVE_SSL
                  "SSL "
#endif
#ifdef HAVE_INET6
                  "IPv6 "
#endif
#ifdef HAVE_DEBUG
                  "DEBUG "
#endif
#ifdef HAVE_OSX
                  "OSX "
#endif
            );

      putchar('\n');

      printf("nbSMTP comes with ABSOLUTELY NO WARRANTY\n\n");

      do
      {
            printf("%s\n",authors[i]);
      } while (authors[++i]);

      print_usage(prog);
      printf("  -d\tdomain to send in HELO request\n");
      printf("  -f\temail address to send in MAIL FROM request\n");
      printf("  -h\thost to relay mail to\n");
      printf("  -p\tport to connect to\n");
#ifdef HAVE_SSL
      printf("  -s\tuse SSL to transfer mail\n");
      printf("  -S\tuse STARTTLS to connect to server\n");
#endif
      printf("  -U\tSASL user\n");
      printf("  -P\tSASL password\n");
      printf("  -M\t{l,p} SASL mechanism to use: l - login (default) , p - plain\n");
      printf("  -D\tenable debug to syslog (LOG_DEBUG)\n");
      printf("  -N\tdo not read system-wide config file\n");
      printf("  -n\tdo not read local config file\n");
      printf("  -V\tlog to stderr instead of using syslog (implies -D)\n");
      printf("  -v\tprint version and exit\n");
      printf("  -c\tuse an additional config file\n");
      printf("  -H\tthis help message\n");

      printf("\nSend bug reports and comments to <%s>.\n\n",PACKAGE_BUGREPORT);
}


Generated by  Doxygen 1.6.0   Back to index