gverifierstatus.h
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 // ===
20 
21 #ifndef G_SMTP_VERIFIER_STATUS_H
22 #define G_SMTP_VERIFIER_STATUS_H
23 
24 #include "gdef.h"
25 #include "gsmtp.h"
26 #include <string>
27 
29 namespace GSmtp
30 {
31  class VerifierStatus ;
32 }
33 
52 {
53 public:
54  bool is_valid ;
55  bool is_local ;
56  bool temporary ;
57  std::string full_name ;
58  std::string address ;
59  std::string reason ;
60  std::string help ;
61 
62  VerifierStatus() ;
64 
65  explicit VerifierStatus( const std::string & ) ;
68 
69  static VerifierStatus parse( const std::string & str , std::string & to_ref ) ;
72 
73  std::string str( const std::string & to ) const ;
76 } ;
77 
78 #endif
SMTP and message-store classes.
static VerifierStatus parse(const std::string &str, std::string &to_ref)
Parses a str() string into a structure and a recipient 'to' address (by reference).
VerifierStatus()
Default constructor for an invalid remote mailbox.
A structure returned by GSmtp::Verifier to describe the status of a rcpt-to recipient.
std::string str(const std::string &to) const
Returns a string representation of the structure plus the original recipient 'to' address...