llmail.cpp File Reference

smtp helper functions. More...

#include "linden_common.h"
#include "llmail.h"
#include <string>
#include <sstream>
#include <boost/regex.hpp>
#include "apr-1/apr_pools.h"
#include "apr-1/apr_network_io.h"
#include "llapr.h"
#include "llbase32.h"
#include "llblowfishcipher.h"
#include "llerror.h"
#include "llhost.h"
#include "llstring.h"
#include "lluuid.h"
#include "net.h"

Include dependency graph for llmail.cpp:

Go to the source code of this file.

Functions

static const boost::regex valid_subject_chars ("[\\x1-\\x9\\xb\\xc\\xe-\\x7f]*")
bool connect_smtp ()
void disconnect_smtp ()

Variables

const size_t LL_MAX_KNOWN_GOOD_MAIL_SIZE = 4096
static bool gMailEnabled = true
static apr_pool_tgMailPool
static apr_sockaddr_t * gSockAddr
static apr_socket_t * gMailSocket


Detailed Description

smtp helper functions.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llmail.cpp.


Function Documentation

bool connect_smtp (  ) 

Definition at line 83 of file llmail.cpp.

References gMailPool, gMailSocket, gSockAddr, and ll_apr_warn_status().

Referenced by LLMail::send().

void disconnect_smtp (  ) 

Definition at line 104 of file llmail.cpp.

References gMailSocket, ll_apr_warn_status(), and NULL.

Referenced by LLMail::send().

static const boost::regex valid_subject_chars ( "*"  [\\x1-\\x9\\xb\\xc\\xe-\\x7f]  )  [static]

Referenced by LLMail::buildSMTPTransaction().


Variable Documentation

bool gMailEnabled = true [static]

Definition at line 64 of file llmail.cpp.

Referenced by LLMail::enable(), and LLMail::send().

apr_pool_t* gMailPool [static]

Definition at line 65 of file llmail.cpp.

Referenced by connect_smtp(), and LLMail::init().

apr_socket_t* gMailSocket [static]

Definition at line 67 of file llmail.cpp.

Referenced by connect_smtp(), disconnect_smtp(), LLMail::init(), and LLMail::send().

apr_sockaddr_t* gSockAddr [static]

Definition at line 66 of file llmail.cpp.

Referenced by connect_smtp(), LLMail::init(), and LLMail::send().

const size_t LL_MAX_KNOWN_GOOD_MAIL_SIZE = 4096

Definition at line 62 of file llmail.cpp.

Referenced by LLMail::send().


Generated on Thu Jul 1 06:10:31 2010 for Second Life Viewer by  doxygen 1.4.7