From: arjen Date: Sun, 6 May 2007 08:39:06 +0000 (+0000) Subject: Skip the Email header when reading XML input. X-Git-Tag: V_0_0_10~8 X-Git-Url: http://www.andromeda.nl/gitweb/?p=gnucomo.git;a=commitdiff_plain;h=2b2acb2d2da4a6a9196a4211e0058be3fb1c659c Skip the Email header when reading XML input. --- 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";