Skip the Email header when reading XML input.
authorarjen <arjen>
Sun, 6 May 2007 08:39:06 +0000 (08:39 +0000)
committerarjen <arjen>
Sun, 6 May 2007 08:39:06 +0000 (08:39 +0000)
src/gcm_input/message_filter.cpp

index 02a5978..774bd71 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : message_filter.cpp
 **      SYSTEM NAME    : 
-**      VERSION NUMBER : $Revision: 1.1 $
+**      VERSION NUMBER : $Revision: 1.2 $
 **
 **  DESCRIPTION      :  
 **
 ********************************
 **      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";