Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
Mail::Message Class Reference

#include <mail.h>

Inheritance diagram for Mail::Message:
Inheritance graph
Collaboration diagram for Mail::Message:
Collaboration graph

Public Member Functions

 Message (const Anope::string &sf, const Anope::string &mailto, const Anope::string &addr, const Anope::string &subject, const Anope::string &message)
 ~Message ()
void Run () anope_override
- Public Member Functions inherited from Thread
 Thread ()
virtual ~Thread ()
void Join ()
void SetExitState ()
void Exit ()
void Start ()
bool GetExitState () const
void OnNotify ()
- Public Member Functions inherited from Pipe
 Pipe ()
 ~Pipe ()
bool ProcessRead () anope_override
void Write (const char *data, size_t sz)
void Write (const Anope::string &data)
int Read (char *data, size_t sz)
bool SetWriteBlocking (bool state)
void Notify ()
- Public Member Functions inherited from Socket
 Socket ()
 Socket (int sock, bool ipv6=false, int type=SOCK_STREAM)
virtual ~Socket ()
int GetFD () const
bool IsIPv6 () const
bool SetBlocking (bool state)
void Bind (const Anope::string &ip, int port=0)
virtual bool Process ()
virtual bool ProcessWrite ()
virtual void ProcessError ()
- Public Member Functions inherited from Extensible
virtual ~Extensible ()
template<typename T >
T * GetExt (const Anope::string &name) const
bool HasExt (const Anope::string &name) const
template<typename T >
T * Extend (const Anope::string &name, const T &what)
template<typename T >
T * Extend (const Anope::string &name)
template<typename T >
T * Require (const Anope::string &name)
template<typename T >
void Shrink (const Anope::string &name)
bool * Extend (const Anope::string &name, const bool &what)

Private Attributes

Anope::string sendmail_path
Anope::string send_from
Anope::string mail_to
Anope::string addr
Anope::string subject
Anope::string message
bool dont_quote_addresses
bool success

Additional Inherited Members

- Static Public Member Functions inherited from Extensible
static void ExtensibleSerialize (const Extensible *, const Serializable *, Serialize::Data &data)
static void ExtensibleUnserialize (Extensible *, Serializable *, Serialize::Data &data)
- Data Fields inherited from Thread
pthread_t handle
- Data Fields inherited from Pipe
int write_pipe
- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
sockaddrs bindaddr
- Data Fields inherited from Extensible
std::set< ExtensibleBase * > extension_items
- Protected Attributes inherited from Socket
int sock
bool ipv6

Detailed Description

Definition at line 28 of file mail.h.

Constructor & Destructor Documentation

Mail::Message::Message ( const Anope::string sf,
const Anope::string mailto,
const Anope::string addr,
const Anope::string subject,
const Anope::string message 

Construct this message. Once constructed call Thread::Start to launch the mail sending.

mailtoName of person being mailed (u->nick, nc->display, etc)
addrDestination address to mail
subjectMessage subject
messageThe actual message

Definition at line 17 of file mail.cpp.

Mail::Message::~Message ( )

Definition at line 21 of file mail.cpp.

References LOG_NORMAL.

Member Function Documentation

void Mail::Message::Run ( )

Called when the thread is run.

Implements Thread.

Definition at line 29 of file mail.cpp.

References pipe().

Field Documentation

Anope::string Mail::Message::addr

Definition at line 34 of file mail.h.

bool Mail::Message::dont_quote_addresses

Definition at line 37 of file mail.h.

Anope::string Mail::Message::mail_to

Definition at line 33 of file mail.h.

Anope::string Mail::Message::message

Definition at line 36 of file mail.h.

Anope::string Mail::Message::send_from

Definition at line 32 of file mail.h.

Anope::string Mail::Message::sendmail_path

Definition at line 31 of file mail.h.

Anope::string Mail::Message::subject

Definition at line 35 of file mail.h.

bool Mail::Message::success

Definition at line 39 of file mail.h.

The documentation for this class was generated from the following files: