Annotation of parser3/src/types/pa_vmail.h, revision 1.26

1.1       paf         1: /** @file
                      2:        Parser: @b mail class decls.
                      3: 
1.26    ! moko        4:        Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com)
        !             5:        Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
1.1       paf         6: */
                      7: 
                      8: #ifndef PA_VMAIL_H
                      9: #define PA_VMAIL_H
1.2       paf        10: 
1.26    ! moko       11: #define IDENT_PA_VMAIL_H "$Id: pa_vmail.h,v 1.25 2020/12/15 17:10:41 moko Exp $"
1.1       paf        12: 
                     13: #include "classes.h"
                     14: #include "pa_common.h"
                     15: #include "pa_vhash.h"
                     16: 
                     17: // defines
                     18: 
                     19: #define MAIL_RECEIVED_ELEMENT_NAME "received"
1.12      paf        20: #define MAIL_OPTIONS_NAME "options"
1.19      misha      21: #define MAIL_DEBUG_NAME "print-debug"
1.1       paf        22: 
                     23: // forwards
                     24: 
1.10      paf        25: class Request_info;
1.1       paf        26: 
                     27: /**
                     28:        $mail:received letter
                     29: */
1.10      paf        30: class VMail: public VStateless_class {
                     31: 
1.11      paf        32:        VHash vreceived;
1.10      paf        33: 
1.1       paf        34: public: // Value
                     35:        
1.10      paf        36:        override const char* type() const { return "mail"; }
1.1       paf        37:        
1.21      misha      38:        // mail: methods,received field
1.18      misha      39:        Value* get_element(const String& aname);
1.1       paf        40: 
                     41: public: // usage
                     42: 
1.10      paf        43:        VMail();
1.1       paf        44:        
1.10      paf        45:        void fill_received(Request& r);
1.24      moko       46:        const String& message_hash_to_string(Request& r, HashStringValue* message_hash, const String* & from, bool extract_to, String* & to);
1.1       paf        47: };
                     48: 
                     49: #endif

E-mail: