smtp_client.cpp File Reference

#include "smtp_client.h"
#include <basis/function.h>
#include <basis/istring.h>
#include <basis/log_base.h>
#include <basis/mutex.h>
#include <basis/portable.h>
#include <basis/string_array.h>
#include <data_struct/static_memory_gremlin.h>
#include <mechanisms/time_stamp.h>
#include <opsystem/byte_filer.h>
#include <loggers/console_logger.h>
#include <opsystem/path_configuration.h>
#include <opsystem/redirecter.h>
#include <opsystem/registry_config.h>

Include dependency graph for smtp_client.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG(s)
#define CHECK_STILL_RUNNING(to_return)
#define CHECK_FOR_PASSWORD_PROMPT(bytes)

Variables

const int MAXIMUM_WRITE_ITERATIONS = 40
const int MAXIMUM_PAUSE_FOR_SENDING = 30 * SECOND_ms
const int DEFAULT_TIMEOUT = 0


Define Documentation

#define CHECK_FOR_PASSWORD_PROMPT ( bytes   ) 

Value:

{ \
  istring text_gotten(istring::UNTERMINATED, (char *)bytes.observe(), \
      bytes.length()); \
  if (text_gotten.contains("password")) { \
    LOG("saw a password reference in the output; we may be missing " \
        "the password."); \
    msmtp.zap_program(); \
    return ACCESS_DENIED; \
  } \
  CHECK_STILL_RUNNING(BAD_INPUT); \
}

Definition at line 403 of file smtp_client.cpp.

Referenced by smtp_client::send_email().

#define CHECK_STILL_RUNNING ( to_return   ) 

Value:

if (!msmtp.running()) { \
    /* for some reason, it has departed. */ \
    LOG("the msmtp application already exited."); \
    if (!okay_exit_value(msmtp.exit_value())) return to_return; \
    else return OKAY; \
  }

Definition at line 48 of file smtp_client.cpp.

Referenced by smtp_client::send_email().

#define LOG (  ) 

Value:

CLASS_EMERGENCY_LOG((_logging? *_logging \
      : program_wide_logger()), s)
include <basis/trap_new.addin> include <basis/untrap_new.addin>

Definition at line 42 of file smtp_client.cpp.


Variable Documentation

const int DEFAULT_TIMEOUT = 0

Definition at line 64 of file smtp_client.cpp.

const int MAXIMUM_PAUSE_FOR_SENDING = 30 * SECOND_ms

Definition at line 60 of file smtp_client.cpp.

Referenced by smtp_client::send_email().

const int MAXIMUM_WRITE_ITERATIONS = 40

Definition at line 56 of file smtp_client.cpp.

Referenced by smtp_client::send_email().


Generated on Fri Aug 29 04:29:26 2008 for HOOPLE Libraries by  doxygen 1.5.1