#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 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 | ( | s | ) |
Value:
CLASS_EMERGENCY_LOG((_logging? *_logging \ : program_wide_logger()), s)
Definition at line 42 of file smtp_client.cpp.
| const int DEFAULT_TIMEOUT = 0 |
Definition at line 64 of file smtp_client.cpp.
| const int MAXIMUM_PAUSE_FOR_SENDING = 30 * SECOND_ms |
| const int MAXIMUM_WRITE_ITERATIONS = 40 |
1.5.1