X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=src%2Fgcm_input%2Fmessage_filter.cpp;h=774bd71964c83e14659cdecfa33196d22d5ef187;hb=2b2acb2d2da4a6a9196a4211e0058be3fb1c659c;hp=02a5978dbc11b7ed7530a559227e0484a3b8cd3c;hpb=7e796a4c3815f623617e0fdbb5987be7ac135db6;p=gnucomo.git diff --git a/src/gcm_input/message_filter.cpp b/src/gcm_input/message_filter.cpp index 02a5978..774bd71 100644 --- a/src/gcm_input/message_filter.cpp +++ b/src/gcm_input/message_filter.cpp @@ -8,7 +8,7 @@ *********************** ** FILE NAME : message_filter.cpp ** SYSTEM NAME : -** VERSION NUMBER : $Revision: 1.1 $ +** VERSION NUMBER : $Revision: 1.2 $ ** ** DESCRIPTION : ** @@ -20,13 +20,16 @@ ******************************** ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl ** CREATION DATE : Nov 26, 2003 -** LAST UPDATE : Nov 26, 2003 +** LAST UPDATE : May 02, 2007 ** MODIFICATIONS : **************************************************************************/ /***************************** $Log: message_filter.cpp,v $ - Revision 1.1 2003-12-04 10:38:09 arjen + Revision 1.2 2007-05-06 08:39:06 arjen + Skip the Email header when reading XML input. + + Revision 1.1 2003/12/04 10:38:09 arjen Major redesign. All input is handled through XML. Raw input data is first transformed into an XML document for further processing. A collection of polymorphic classes handle the transformation of various @@ -35,7 +38,7 @@ *****************************/ -/* static const char *RCSID = "$Id: message_filter.cpp,v 1.1 2003-12-04 10:38:09 arjen Exp $"; */ +/* static const char *RCSID = "$Id: message_filter.cpp,v 1.2 2007-05-06 08:39:06 arjen Exp $"; */ #include "message_filter.h" @@ -55,7 +58,7 @@ extern std::ostream *Log; ** VARS CHANGED : ** FUNCTIONS USED : ** SEE ALSO : -** LAST MODIFIED : Nov 26, 2003 +** LAST MODIFIED : May 02, 2007 **========================================================================= */ @@ -63,6 +66,8 @@ void message_filter::construct_XML(message_buffer &in, std::strstream &xml) { String line; + scan_email_header(in); + while (in >> line) { xml << line << "\n";