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 
27 {
28 }
29 
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 
52 {
53  return m_done_signal ;
54 }
55 
57 {
58 }
59 
The Address class encapsulates an IP transport address.
Definition: gaddress.h:48
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.
A structure returned by GSmtp::Verifier to describe the status of a rcpt-to recipient.
virtual G::Signal2< std::string, VerifierStatus > & doneSignal()
Final override from GSmtp::Verifier.
virtual void reset()
Final override from GSmtp::Verifier.
virtual ~InternalVerifier()
Destructor.