summaryrefslogtreecommitdiff
path: root/src/tools/anopesmtp.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-26 17:13:11 -0400
committerAdam <Adam@anope.org>2013-05-26 17:13:11 -0400
commit22658d63bdb1e52a66f4514af45fa55ca5891345 (patch)
tree673304ab19f7e077b489354248247867518331f8 /src/tools/anopesmtp.cpp
parentf2dee1e1d642b07947f59f91dfba9af34ef84685 (diff)
Get rid of the remaining references in the core to specific services. Move more stuff out of the core to the proper modules.
Diffstat (limited to 'src/tools/anopesmtp.cpp')
-rw-r--r--src/tools/anopesmtp.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/tools/anopesmtp.cpp b/src/tools/anopesmtp.cpp
index 9d94564a9..c14f2ca23 100644
--- a/src/tools/anopesmtp.cpp
+++ b/src/tools/anopesmtp.cpp
@@ -65,8 +65,6 @@ extern int connect(int, struct sockaddr *, int);
# endif
#endif
-/*************************************************************************/
-
#ifdef _WIN32
typedef SOCKET ano_socket_t;
#define ano_sockclose(fd) closesocket(fd)
@@ -141,8 +139,6 @@ void alog(const char *fmt, ...)
file.close();
}
-/*************************************************************************/
-
/* Remove a trailing \r\n */
std::string strip(const std::string &buf)
{
@@ -156,8 +152,6 @@ std::string strip(const std::string &buf)
return newbuf;
}
-/*************************************************************************/
-
/* Is the buffer a header? */
bool smtp_is_header(const std::string &buf)
{
@@ -171,8 +165,6 @@ bool smtp_is_header(const std::string &buf)
return false;
}
-/*************************************************************************/
-
/* Parse a header into a name and value */
void smtp_parse_header(const std::string &buf, std::string &header, std::string &value)
{
@@ -191,8 +183,6 @@ void smtp_parse_header(const std::string &buf, std::string &header, std::string
}
}
-/*************************************************************************/
-
/* Have we reached the end of input? */
bool smtp_is_end(const std::string &buf)
{
@@ -203,8 +193,6 @@ bool smtp_is_end(const std::string &buf)
return false;
}
-/*************************************************************************/
-
/* Set who the email is to */
void smtp_set_to(const std::string &to)
{
@@ -217,8 +205,6 @@ void smtp_set_to(const std::string &to)
}
}
-/*************************************************************************/
-
/* Establish a connection to the SMTP server */
int smtp_connect(const char *host, unsigned short port)
{
@@ -245,8 +231,6 @@ int smtp_connect(const char *host, unsigned short port)
return 1;
}
-/*************************************************************************/
-
/* Send a line of text */
int smtp_send(const char *text)
{
@@ -260,8 +244,6 @@ int smtp_send(const char *text)
return result;
}
-/*************************************************************************/
-
/* Read a line of text */
int smtp_read(char *buf, int len)
{
@@ -276,8 +258,6 @@ int smtp_read(char *buf, int len)
return result;
}
-/*************************************************************************/
-
/* Retrieve a response code */
int smtp_get_code(const std::string &text)
{
@@ -289,8 +269,6 @@ int smtp_get_code(const std::string &text)
return atol(text.substr(0, tmp).c_str());
}
-/*************************************************************************/
-
/* Send the email */
int smtp_send_email()
{
@@ -424,16 +402,12 @@ int smtp_send_email()
return 1;
}
-/*************************************************************************/
-
void smtp_disconnect()
{
smtp_send("QUIT\r\n");
ano_sockclose(smail.sock);
}
-/*************************************************************************/
-
int main(int argc, char *argv[])
{
/* Win32 stuff */