Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libplaton/utils/meetmail/meetmail.c between version 1.7 and 1.8

version 1.7, 2004/05/15 08:54:40 version 1.8, 2006/01/22 20:03:20
Line 17 
Line 17 
  *     3/1/2003 - import into CVS; project 'libplaton' directory 'utils'  *   *     3/1/2003 - import into CVS; project 'libplaton' directory 'utils'  *
  *              - made meetmail to work with libplaton library            *   *              - made meetmail to work with libplaton library            *
  *    20/4/2003 - numerous tiny fixes and code cleanups                   *   *    20/4/2003 - numerous tiny fixes and code cleanups                   *
    *    22/1/2006 - skip signature appending when base64 encoding is used   *
  *                                                                        *   *                                                                        *
  **************************************************************************/   **************************************************************************/
   
Line 27 
Line 28 
 #include <platon/str/strctype.h>  #include <platon/str/strctype.h>
   
 #ifndef __PRGVERSION__  #ifndef __PRGVERSION__
 #  define __PRGVERSION__        "0.3.4"  #  define __PRGVERSION__        "0.3.5"
 #endif  #endif
   
 #define MEETMAILSTR     \  #define MEETMAILSTR     \
Line 37 
Line 38 
 #define SUBJECTSTR              "Subject:"  #define SUBJECTSTR              "Subject:"
 #define ERRORSTOSTR             "Errors-To:"  #define ERRORSTOSTR             "Errors-To:"
 #define XCONFSOFTSTR    "X-Conference-Software:"  #define XCONFSOFTSTR    "X-Conference-Software:"
   #define CTESTRANDVAL    "Content-Transfer-Encoding: base64"
 #define XOLDSTR                 "X-Old"  #define XOLDSTR                 "X-Old"
 #define DEFSUBJECTSTR   "(ziadny predmet)"  #define DEFSUBJECTSTR   "(ziadny predmet)"
   
Line 61  int main(int argc, char **argv)
Line 63  int main(int argc, char **argv)
         fErrorsToModified = 0,          fErrorsToModified = 0,
         fReplyToModified = 0,          fReplyToModified = 0,
         fSubjectModified = 0,          fSubjectModified = 0,
         fXConfSoftModified = 0;          fXConfSoftModified = 0,
           fAppendSignature = 1;
   
         int eol_count = 0;          int eol_count = 0;
         FILE *f;          FILE *f;
Line 120  int main(int argc, char **argv)
Line 123  int main(int argc, char **argv)
   
         /* E-mail headers alternation ("Subject:", "Reply-to:") */          /* E-mail headers alternation ("Subject:", "Reply-to:") */
         while (fgets(buf, BUFSIZE, stdin) != NULL) {          while (fgets(buf, BUFSIZE, stdin) != NULL) {
                   if (stristr(buf, CTESTRANDVAL) == buf) {
                           fAppendSignature = 0;
                   }
                 /* Subject modification */                  /* Subject modification */
                 if (strstr(buf, SUBJECTSTR) == buf) {                  if (strstr(buf, SUBJECTSTR) == buf) {
                         char*pom;                          char*pom;
Line 239  int main(int argc, char **argv)
Line 245  int main(int argc, char **argv)
                 fputc('\n',stdout);                  fputc('\n',stdout);
   
         /* Adding info text from file */          /* Adding info text from file */
         if ((f = fopen(conffilename, "rt")) != NULL) {          if (fAppendSignature && (f = fopen(conffilename, "rt")) != NULL) {
                 while (fgets(buf,BUFSIZE,f) != NULL)                  while (fgets(buf,BUFSIZE,f) != NULL)
                         fputs(buf, stdout);                          fputs(buf, stdout);
                 fclose(f);                  fclose(f);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top