Show
Ignore:
Timestamp:
09/02/10 20:10:07 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
e7bbf3c6b857df8ad33c4d39396d693b48a48461
Parents:
62231ec0359b34f6a82b6688a7af97f2eb2ede10
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (09/02/10 20:10:07)
Message:

Support multipart entities

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • msg/entity.hh

    r62231ec rc504199  
    3939                typedef std::list<std::string>::const_iterator field_iterator; 
    4040 
    41                 explicit entity(std::string msgstr); 
     41                explicit entity(std::string msgstr, 
     42                                std::string default_ct =  
     43                                "text/plain; charset=\"US-ASCII\""); 
    4244 
    4345                virtual ~entity() {} 
     
    5961 
    6062 
    61                 bool has_field(std::string s) { 
     63                bool has_field(std::string s) const{ 
    6264                        boost::to_lower(s); 
    6365                        return fields.find(s) != fields.end(); 
     
    8284 
    8385        private: 
     86                std::string default_ct; 
    8487                // this split is to both provide a fast name lookup 
    8588                // and to preserve the field ordering