- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

ginternalverifier.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2001-2013 Graeme Walker <graeme_walker@users.sourceforge.net>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 //
18 // ginternalverifier.cpp
19 //
20
21 #include "gdef.h"
22 #include "gsmtp.h"
23 #include "ginternalverifier.h"
24 #include "glog.h"
25
26 GSmtp::InternalVerifier::InternalVerifier()
27 {
28 }
29
30 GSmtp::InternalVerifier::~InternalVerifier()
31 {
32 }
33
34 void GSmtp::InternalVerifier::verify( const std::string & to , const std::string & , const GNet::Address & ,
35 const std::string & , const std::string & )
36 {
37 VerifierStatus status = verifyInternal( to ) ;
38 doneSignal().emit( to , status ) ;
39 }
40
41 GSmtp::VerifierStatus GSmtp::InternalVerifier::verifyInternal( const std::string & address ) const
42 {
43 // accept all addresses as if remote
44 VerifierStatus status ;
45 status.is_valid = true ;
46 status.is_local = false ;
47 status.address = address ;
48 return status ;
49 }
50
51 G::Signal2<std::string,GSmtp::VerifierStatus> & GSmtp::InternalVerifier::doneSignal()
52 {
53 return m_done_signal ;
54 }
55
56 void GSmtp::InternalVerifier::reset()
57 {
58 }
59
G::Signal2< std::string, GSmtp::VerifierStatus >
glog.h
GNet::Address
The Address class encapsulates an IP transport address.
Definition: gaddress.h:48
GSmtp::VerifierStatus::address
std::string address
Definition: gverifierstatus.h:58
GSmtp::InternalVerifier::verify
virtual void verify(const std::string &rcpt_to_parameter, const std::string &mail_from_parameter, const GNet::Address &client_ip, const std::string &auth_mechanism, const std::string &auth_extra)
Final override from GSmtp::Verifier.
Definition: ginternalverifier.cpp:34
GSmtp::InternalVerifier::InternalVerifier
InternalVerifier()
Constructor.
Definition: ginternalverifier.cpp:26
ginternalverifier.h
GSmtp::VerifierStatus
A structure returned by GSmtp::Verifier to describe the status of a rcpt-to recipient.
Definition: gverifierstatus.h:51
gsmtp.h
GSmtp::VerifierStatus::is_local
bool is_local
Definition: gverifierstatus.h:55
GSmtp::VerifierStatus::is_valid
bool is_valid
Definition: gverifierstatus.h:54
GSmtp::InternalVerifier::doneSignal
virtual G::Signal2< std::string, VerifierStatus > & doneSignal()
Final override from GSmtp::Verifier.
Definition: ginternalverifier.cpp:51
GSmtp::InternalVerifier::reset
virtual void reset()
Final override from GSmtp::Verifier.
Definition: ginternalverifier.cpp:56
GSmtp::InternalVerifier::~InternalVerifier
virtual ~InternalVerifier()
Destructor.
Definition: ginternalverifier.cpp:30