Show
Ignore:
Timestamp:
02/03/11 19:48:35 (16 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
2a665297c7a8b588c97e99f1843a3b75aad25531
Parents:
173e2ce96a7bde630476defe34fae1b5ed1baaba
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (02/03/11 19:48:35)
Message:

#77: Fix XRef handling in NNTP

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

Location:
nntp
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • nntp/article.cc

    r2114058 rb4f0cdb  
    182182                { 
    183183                        std::string head = message->get_entity()->get_header(); 
     184                        head += message->get_xref_field(true); 
    184185                        c.send_raw(head.begin(), head.end()); 
    185                         c.send_line(message->get_xref_field(true)); 
    186186                } 
    187187                if (cmd == ARTICLE) c.send_line(""); 
  • nntp/hdr.cc

    r2114058 rb4f0cdb  
    152152                        s = boost::lexical_cast<std::string> 
    153153                                (m->get_entity()->get_size() + 
    154                                  m->get_xref_field(true).length() + 2); 
     154                                 m->get_xref_field(true).length()); 
     155                else if (hn == "xref") 
     156                        s = m->get_xref_field(false); 
    155157                else 
    156158                        s = m->get_entity()->get_field(hname, false); 
  • nntp/over.cc

    r2114058 rb4f0cdb  
    164164                                if (full) s = hname + ": "; 
    165165                                s += boost::lexical_cast<std::string> 
    166                                         (m->get_entity()->get_size()); 
     166                                        (m->get_entity()->get_size() + 
     167                                         m->get_xref_field(true).length()); 
    167168                        } 
     169                        else if (hn == "xref") 
     170                                s = m->get_xref_field(false); 
    168171                        else 
    169172                                s = m->get_entity()->get_field(hname, full);