home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mm / test / mm.diff < prev    next >
Text File  |  2020-01-01  |  35KB  |  1,005 lines

  1. *** /p/kd/fdc/mm/work/mm/cmds.c    2006-01-09 12:58:51.731051000 -0500
  2. --- ./cmds.c    2005-12-07 17:06:51.000000000 -0500
  3. ***************
  4. *** 1,7 ****
  5.   #include "args.h"
  6.   #include "config.h"
  7.   /*
  8. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  9.    * the City of New York.  Permission is granted to any individual or
  10.    * institution to use, copy, or redistribute this software so long as it
  11.    * is not sold for profit, provided this copyright notice is retained.
  12. --- 1,7 ----
  13.   #include "args.h"
  14.   #include "config.h"
  15.   /*
  16. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  17.    * the City of New York.  Permission is granted to any individual or
  18.    * institution to use, copy, or redistribute this software so long as it
  19.    * is not sold for profit, provided this copyright notice is retained.
  20. ***************
  21. *** 12,18 ****
  22.    *
  23.    * THIS FILE IS EDITED BY HAND - NOT GENERATED BY MACHINE.
  24.    * Every time a new command is added, this file needs to be resync'd
  25. !  * with with values in cmds.h which is generated from cmds.hh.
  26.    *
  27.    * All of the top-level command tables for mm are declared here.
  28.    */
  29. --- 12,18 ----
  30.    *
  31.    * THIS FILE IS EDITED BY HAND - NOT GENERATED BY MACHINE.
  32.    * Every time a new command is added, this file needs to be resync'd
  33. !  * with with values in cmds.h which is generated from cmds.H.
  34.    *
  35.    * All of the top-level command tables for mm are declared here.
  36.    */
  37. ***************
  38. *** 55,61 ****
  39.       { "download", 0, (keyval) CMD_DOWNLOAD },
  40.       { "forward",  0, (keyval) CMD_FORWARD },
  41.       { "print",    0, (keyval) CMD_PRINT },
  42. -     { "qd",       KEY_INV, (keyval) CMD_DELETE },
  43.       { "remail",   0, (keyval) CMD_REMAIL },
  44.       { "reply",    0, (keyval) CMD_REPLY },
  45.       { "type",     0, (keyval) CMD_TYPE },
  46. --- 55,60 ----
  47. ***************
  48. *** 347,353 ****
  49.       { "forward", 0, (keyval) CMD_FORWARD },
  50.       { "kill", 0, (keyval) CMD_KILL },
  51.       { "print", 0, (keyval) CMD_PRINT },
  52. -     { "qd", KEY_INV, (keyval) CMD_DELETE },
  53.       { "remail", 0, (keyval) CMD_REMAIL },
  54.       { "reply", 0, (keyval) CMD_REPLY },
  55.       { "undelete", 0, (keyval) CMD_UNDELETE },
  56. --- 346,351 ----
  57. ***************
  58. *** 645,656 ****
  59.       cmd_mark,                /* 19 CMD_DELETE */
  60.       cmd_display,            /* 20 CMD_DISPLAY */
  61.       cmd_download,            /* 21 CMD_DOWNOAD */
  62. !  (T)cmd_echo,                /* 22 CMD_ECHO */
  63. !  (T)cmd_edit,                /* 23 CMD_EDIT */
  64. !  (T)cmd_erase,                /* 24 CMD_ERASE */
  65.    (T)cmd_get,                /* 25 CMD_EXAMINE */
  66.    (T)cmd_exit,                /* 26 CMD_EXIT */
  67. !  (T)cmd_expunge,            /* 27 CMD_EXPUNGE */
  68.       cmd_fcc,                /* 28 CMD_FCC */
  69.       cmd_finger,                /* 29 CMD_FINGER */
  70.       cmd_mark,                /* 30 CMD_FLAG */
  71. --- 643,654 ----
  72.       cmd_mark,                /* 19 CMD_DELETE */
  73.       cmd_display,            /* 20 CMD_DISPLAY */
  74.       cmd_download,            /* 21 CMD_DOWNOAD */
  75. !     cmd_echo,                /* 22 CMD_ECHO */
  76. !     cmd_edit,                /* 23 CMD_EDIT */
  77. !     cmd_erase,                /* 24 CMD_ERASE */
  78.    (T)cmd_get,                /* 25 CMD_EXAMINE */
  79.    (T)cmd_exit,                /* 26 CMD_EXIT */
  80. !     cmd_expunge,            /* 27 CMD_EXPUNGE */
  81.       cmd_fcc,                /* 28 CMD_FCC */
  82.       cmd_finger,                /* 29 CMD_FINGER */
  83.       cmd_mark,                /* 30 CMD_FLAG */
  84. ***************
  85. *** 676,716 ****
  86.       cmd_profile,            /* 50 CMD_PROFILE */
  87.    (T)cmd_push,                /* 51 CMD_PUSH */
  88.       cmd_pwd,                /* 52 CMD_PWD */
  89. !     cmd_mark,                 /* 53 CMD_DELETE (QD) */
  90. !  (T)cmd_quit,                /* 54 CMD_QUIT */
  91. !  (T)cmd_quit,                /* 55 CMD_QQUIT */
  92. !  (T)cmd_read,                /* 56 CMD_READ */
  93. !     cmd_remail,                /* 57 CMD_REMAIL */
  94. !     cmd_remove,                /* 58 CMD_REMOVE */
  95. !     cmd_reply,                /* 59 CMD_REPLY */
  96. !     cmd_reply_to,            /* 60 CMD_REPLY_TO */
  97. !     cmd_restore_draft,            /* 61 CMD_RESTORE_DRAFT */
  98. !  (T)cmd_read,                /* 62 CMD_REVIEW */
  99. !     cmd_route,                /* 63 CMD_ROUTE */
  100. !     cmd_save_draft,            /* 64 CMD_SAVE_DRAFT */
  101. !     cmd_send,                /* 65 CMD_SEND */
  102. !  (T)cmd_set,                /* 66 CMD_SET */
  103. !  (T)cmd_show,                /* 67 CMD_SHOW */
  104. !     cmd_smail,                /* 68 CMD_SMAIL */
  105. !     cmd_sort,                /* 69 CMD_SORT */
  106. !     cmd_spell,                /* 70 CMD_SPELL */
  107. !     cmd_status,                /* 71 CMD_STATUS */
  108. !     cmd_subject,            /* 72 CMD_SUBJECT */
  109. !     cmd_suspend,            /* 73 CMD_SUSPEND */
  110. !     cmd_take,                /* 74 CMD_TAKE */
  111. !     cmd_text,                /* 75 CMD_TEXT */
  112. !     cmd_to,                /* 76 CMD_TO */
  113. !     cmd_transfer_encoding,        /* 77 CMD_TRANSFER_ENCODING */
  114. !     cmd_type,                /* 78 CMD_TYPE */
  115. !     cmd_mark,                /* 79 CMD_UNANSWER */
  116. !     cmd_mark,                /* 80 CMD_UNDELETE */
  117. !     cmd_mark,                /* 81 CMD_UNFLAG */
  118. !     cmd_unkeyword,            /* 82 CMD_UNKEYWORD */
  119. !     cmd_mark,                /* 83 CMD_UNMARK */
  120. !     cmd_user_header,            /* 84 CMD_USER_HEADER */
  121. !     cmd_version,            /* 85 CMD_VERSION */
  122. !  (T)cmd_who,                /* 86 CMD_WHO */
  123. !     cmd_write,                /* 87 CMD_WRITE */
  124. !     cmd_suspend,            /* 88 CMD_Z */
  125.   };
  126.   #undef T
  127. --- 674,713 ----
  128.       cmd_profile,            /* 50 CMD_PROFILE */
  129.    (T)cmd_push,                /* 51 CMD_PUSH */
  130.       cmd_pwd,                /* 52 CMD_PWD */
  131. !  (T)cmd_quit,                /* 53 CMD_QUIT */
  132. !  (T)cmd_quit,                /* 54 CMD_QQUIT */
  133. !  (T)cmd_read,                /* 55 CMD_READ */
  134. !     cmd_remail,                /* 56 CMD_REMAIL */
  135. !     cmd_remove,                /* 57 CMD_REMOVE */
  136. !     cmd_reply,                /* 58 CMD_REPLY */
  137. !     cmd_reply_to,            /* 59 CMD_REPLY_TO */
  138. !     cmd_restore_draft,            /* 60 CMD_RESTORE_DRAFT */
  139. !  (T)cmd_read,                /* 61 CMD_REVIEW */
  140. !     cmd_route,                /* 62 CMD_ROUTE */
  141. !     cmd_save_draft,            /* 63 CMD_SAVE_DRAFT */
  142. !     cmd_send,                /* 64 CMD_SEND */
  143. !  (T)cmd_set,                /* 65 CMD_SET */
  144. !  (T)cmd_show,                /* 66 CMD_SHOW */
  145. !     cmd_smail,                /* 67 CMD_SMAIL */
  146. !     cmd_sort,                /* 68 CMD_SORT */
  147. !     cmd_spell,                /* 69 CMD_SPELL */
  148. !     cmd_status,                /* 70 CMD_STATUS */
  149. !     cmd_subject,            /* 71 CMD_SUBJECT */
  150. !     cmd_suspend,            /* 72 CMD_SUSPEND */
  151. !     cmd_take,                /* 73 CMD_TAKE */
  152. !     cmd_text,                /* 74 CMD_TEXT */
  153. !     cmd_to,                /* 75 CMD_TO */
  154. !     cmd_transfer_encoding,        /* 76 CMD_TRANSFER_ENCODING */
  155. !     cmd_type,                /* 77 CMD_TYPE */
  156. !     cmd_mark,                /* 78 CMD_UNANSWER */
  157. !     cmd_mark,                /* 79 CMD_UNDELETE */
  158. !     cmd_mark,                /* 80 CMD_UNFLAG */
  159. !     cmd_unkeyword,            /* 81 CMD_UNKEYWORD */
  160. !     cmd_mark,                /* 82 CMD_UNMARK */
  161. !     cmd_user_header,            /* 83 CMD_USER_HEADER */
  162. !     cmd_version,            /* 84 CMD_VERSION */
  163. !  (T)cmd_who,                /* 85 CMD_WHO */
  164. !     cmd_write,                /* 86CMD_WRITE */
  165. !     cmd_suspend,            /* 87 CMD_Z */
  166.   };
  167.   #undef T
  168. *** /p/kd/fdc/mm/work/mm/cmds.h    2006-01-09 13:00:34.511272000 -0500
  169. --- ./cmds.h    2005-12-07 15:20:28.000000000 -0500
  170. ***************
  171. *** 1,7 ****
  172.   /*
  173. !  * DON'T EDIT cmds.h - Make changes in cmds.hh.
  174.    *
  175. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  176.    * the City of New York.  Permission is granted to any individual or
  177.    * institution to use, copy, or redistribute this software so long as it
  178.    * is not sold for profit, provided this copyright notice is retained.
  179. --- 1,7 ----
  180.   /*
  181. !  * DON'T EDIT cmds.h - Make changes in cmds.H.
  182.    *
  183. !  * Copyright (c) 1986, 2005 by The Trustees of Columbia University in
  184.    * the City of New York.  Permission is granted to any individual or
  185.    * institution to use, copy, or redistribute this software so long as it
  186.    * is not sold for profit, provided this copyright notice is retained.
  187. ***************
  188. *** 72,135 ****
  189.   #define CMD_PROFILE      50              /* */
  190.   #define CMD_PUSH         51              /* */
  191.   #define CMD_PWD          52              /* */
  192. ! #define CMD_QD           53              /* */
  193. ! #define CMD_QUIT         54              /* */
  194. ! #define CMD_QQUIT        55              /* */
  195. ! #define CMD_READ         56              /* */
  196. ! #define CMD_REMAIL       57              /* */
  197. ! #define CMD_REMOVE       58              /* */
  198. ! #define CMD_REPLY        59              /* */
  199. ! #define CMD_REPLY_TO     60              /* */
  200. ! #define CMD_RESTORE_DRAFT 61             /* */
  201. ! #define CMD_REVIEW       62              /* */
  202. ! #define CMD_ROUTE        63              /* */
  203. ! #define CMD_SAVE_DRAFT   64              /* */
  204. ! #define CMD_SEND         65              /* */
  205. ! #define CMD_SET          66              /* */
  206. ! #define CMD_SHOW         67              /* */
  207. ! #define CMD_SMAIL        68              /* */
  208. ! #define CMD_SORT         69              /* */
  209. ! #define CMD_SPELL        70              /* */
  210. ! #define CMD_STATUS       71              /* */
  211. ! #define CMD_SUBJECT      72              /* */
  212. ! #define CMD_SUSPEND      73              /* */
  213. ! #define CMD_TAKE         74              /* */
  214. ! #define CMD_TEXT         75              /* */
  215. ! #define CMD_TO           76              /* */
  216. ! #define CMD_TRANSFER_ENCODING 77         /* */
  217. ! #define CMD_TYPE         78              /* */
  218. ! #define CMD_UNANSWER     79              /* */
  219. ! #define CMD_UNDELETE     80              /* */
  220. ! #define CMD_UNFLAG       81              /* */
  221. ! #define CMD_UNKEYWORD    82              /* */
  222. ! #define CMD_UNMARK       83              /* */
  223. ! #define CMD_USER_HEADER  84              /* */
  224. ! #define CMD_VERSION      85              /* */
  225. ! #define CMD_WHO          86              /* */
  226. ! #define CMD_WRITE        87              /* */
  227. ! #define CMD_Z            88              /* */
  228. ! #define CMD_HEADER       89              /* */
  229. ! #define CMD_EXPAND       90              /* */
  230. ! #define CMD_SENDER       91              /* */
  231. ! #define CMD_ALL          92              /* */
  232. ! #define CMD_INCLUDE      93              /* */
  233. ! #define CMD_NOINCLUDE    94              /* */
  234. ! #define HLP_CCMD         95              /* */
  235. ! #define HLP_MESSAGE_SEQUENCE 96          /* */
  236. ! #define HLP_MMINIT       97              /* */
  237. ! #define HLP_MM           98              /* */
  238. ! #define HLP_SHELL        99              /* */
  239.   
  240. ! #define HLP_TYPE_BABYL   100             /* */
  241.   #define HLP_TYPE_START HLP_TYPE_BABYL
  242. ! #define HLP_TYPE_MBOX    101             /* */
  243. ! #define HLP_TYPE_MH      102             /* */
  244. ! #define HLP_TYPE_MTXT    103             /* */
  245. ! #define HLP_TYPE_POP2    104             /* */
  246. ! #define HLP_TYPE_POP3    105             /* */
  247.   
  248. ! #define NUMTOPICS        106             /* */
  249. --- 72,134 ----
  250.   #define CMD_PROFILE      50              /* */
  251.   #define CMD_PUSH         51              /* */
  252.   #define CMD_PWD          52              /* */
  253. ! #define CMD_QUIT         53              /* */
  254. ! #define CMD_QQUIT        54              /* */
  255. ! #define CMD_READ         55              /* */
  256. ! #define CMD_REMAIL       56              /* */
  257. ! #define CMD_REMOVE       57              /* */
  258. ! #define CMD_REPLY        58              /* */
  259. ! #define CMD_REPLY_TO     59              /* */
  260. ! #define CMD_RESTORE_DRAFT 60             /* */
  261. ! #define CMD_REVIEW       61              /* */
  262. ! #define CMD_ROUTE        62              /* */
  263. ! #define CMD_SAVE_DRAFT   63              /* */
  264. ! #define CMD_SEND         64              /* */
  265. ! #define CMD_SET          65              /* */
  266. ! #define CMD_SHOW         66              /* */
  267. ! #define CMD_SMAIL        67              /* */
  268. ! #define CMD_SORT         68              /* */
  269. ! #define CMD_SPELL        69              /* */
  270. ! #define CMD_STATUS       70              /* */
  271. ! #define CMD_SUBJECT      71              /* */
  272. ! #define CMD_SUSPEND      72              /* */
  273. ! #define CMD_TAKE         73              /* */
  274. ! #define CMD_TEXT         74              /* */
  275. ! #define CMD_TO           75              /* */
  276. ! #define CMD_TRANSFER_ENCODING 76         /* */
  277. ! #define CMD_TYPE         77              /* */
  278. ! #define CMD_UNANSWER     78              /* */
  279. ! #define CMD_UNDELETE     79              /* */
  280. ! #define CMD_UNFLAG       80              /* */
  281. ! #define CMD_UNKEYWORD    81              /* */
  282. ! #define CMD_UNMARK       82              /* */
  283. ! #define CMD_USER_HEADER  83              /* */
  284. ! #define CMD_VERSION      84              /* */
  285. ! #define CMD_WHO          85              /* */
  286. ! #define CMD_WRITE        86              /* */
  287. ! #define CMD_Z            87              /* */
  288. ! #define CMD_HEADER       88              /* */
  289. ! #define CMD_EXPAND       89              /* */
  290. ! #define CMD_SENDER       90              /* */
  291. ! #define CMD_ALL          91              /* */
  292. ! #define CMD_INCLUDE      92              /* */
  293. ! #define CMD_NOINCLUDE    93              /* */
  294. ! #define HLP_CCMD         94              /* */
  295. ! #define HLP_MESSAGE_SEQUENCE 95          /* */
  296. ! #define HLP_MMINIT       96              /* */
  297. ! #define HLP_MM           97              /* */
  298. ! #define HLP_SHELL        98              /* */
  299.   
  300. ! #define HLP_TYPE_BABYL   99              /* */
  301.   #define HLP_TYPE_START HLP_TYPE_BABYL
  302. ! #define HLP_TYPE_MBOX    100             /* */
  303. ! #define HLP_TYPE_MH      101             /* */
  304. ! #define HLP_TYPE_MTXT    102             /* */
  305. ! #define HLP_TYPE_POP2    103             /* */
  306. ! #define HLP_TYPE_POP3    104             /* */
  307.   
  308. ! #define NUMTOPICS        105             /* */
  309. *** /p/kd/fdc/mm/work/mm/compat.c    2006-01-08 17:57:11.759051000 -0500
  310. --- ./compat.c    2005-12-07 11:57:07.000000000 -0500
  311. ***************
  312. *** 140,157 ****
  313.       flk.l_start = 0;
  314.       flk.l_len = 0;
  315.       status = fcntl (fd, F_SETLK, &flk);
  316. -     /* printf(">>> LOCK_FILE HAVE_F_SETLK[%s]=%d\n",name,status); */
  317.   #else
  318.   #ifdef HAVE_FLOCK
  319.       status = flock (fd, LOCK_NB|LOCK_EX);
  320. -     /* printf(">>> LOCK_FILE HAVE_FLOCK[%s]=%d\n",name,status); */
  321.   #else
  322.   #ifdef HAVE_LOCKF
  323.       status = lockf (fd, F_TLOCK, 0);
  324. -     /* printf(">>> LOCK_FILE HAVE_LOCKF[%s]=%d\n",name,status); */
  325.   #else
  326.       status = 0;            /* pretend we locked it */
  327. -     /* printf(">>> LOCK_FILE nothing[%s]=%d\n",name,status); */
  328.   #ifdef undef
  329.       int lockfd;
  330.       char lockfname[MAXPATHLEN];
  331. --- 140,153 ----
  332. *** /p/kd/fdc/mm/work/mm/config.h    2006-01-10 12:48:29.000000000 -0500
  333. --- ./config.h    2005-12-07 16:10:13.000000000 -0500
  334. ***************
  335. *** 1,7 ****
  336.   #ifndef CONFIG_H_
  337.   #define CONFIG_H_
  338.   /*
  339. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  340.    * the City of New York.  Permission is granted to any individual or
  341.    * institution to use, copy, or redistribute this software so long as it
  342.    * is not sold for profit, provided this copyright notice is retained.
  343. --- 1,7 ----
  344.   #ifndef CONFIG_H_
  345.   #define CONFIG_H_
  346.   /*
  347. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  348.    * the City of New York.  Permission is granted to any individual or
  349.    * institution to use, copy, or redistribute this software so long as it
  350.    * is not sold for profit, provided this copyright notice is retained.
  351. ***************
  352. *** 25,52 ****
  353.   
  354.   #define DONT_EMIT_FROM_HEADERS
  355.   
  356. - /* Site-specific configurations start here */
  357. - #ifdef COLUMBIA
  358. - /* If DONT_EMIT_FROM_HEADERS is defined REMAIL doesn't work right */
  359. - /* See display.c */
  360. - #ifdef DONT_EMIT_FROM_HEADERS
  361. - #undef DONT_EMIT_FROM_HEADERS
  362. - #endif    /* DONT_EMIT_FROM_HEADERS */
  363.   #define FORWARD_FILE ".forward"        /* .forward file name if used */
  364.   #define GNUEMACS "emacs"        /* name of GNU Emacs if present */
  365.   #undef HAVE_YP                /* use yp? */
  366.   #define HAVE_NFS            /* NFS used for some mail files? */
  367.   #undef HAVE_QUOTAS            /* have and use quota support? */
  368.   
  369. ! #ifndef HAVE_F_SETLK            /* We need file locking via fcntl() */
  370. ! #define HAVE_F_SETLK
  371. ! #endif /* HAVE_F_SETLK */
  372. ! #undef HAVE_LOCKF
  373. ! #undef HAVE_FLOCK
  374.   #ifndef LIBDIR
  375.   #define LIBDIR        "/opt/ACISmm/lib/"
  376.   #endif
  377. --- 25,37 ----
  378.   
  379.   #define DONT_EMIT_FROM_HEADERS
  380.   
  381.   #define FORWARD_FILE ".forward"        /* .forward file name if used */
  382.   #define GNUEMACS "emacs"        /* name of GNU Emacs if present */
  383.   #undef HAVE_YP                /* use yp? */
  384.   #define HAVE_NFS            /* NFS used for some mail files? */
  385.   #undef HAVE_QUOTAS            /* have and use quota support? */
  386.   
  387. ! #ifdef COLUMBIA
  388.   #ifndef LIBDIR
  389.   #define LIBDIR        "/opt/ACISmm/lib/"
  390.   #endif
  391. ***************
  392. *** 65,112 ****
  393.   #ifndef MOVEMAIL
  394.   #define MOVEMAIL    "/opt/ACISmm/lib/movemail"
  395.   #endif
  396. - #else  /* !COLUMBIA */
  397. - #ifdef MM_PANIX
  398. - #undef DONT_EMIT_FROM_HEADERS
  399. - #define GNUEMACS "emacs"        /* name of GNU Emacs if present */
  400. - #undef HAVE_YP                /* use yp? */
  401. - #define HAVE_NFS            /* NFS used for some mail files? */
  402. - #undef HAVE_QUOTAS            /* have and use quota support? */
  403. - #ifndef HAVE_F_SETLK            /* We need file locking via fcntl() */
  404. - #define HAVE_F_SETLK
  405. - #endif /* HAVE_F_SETLK */
  406. - #undef HAVE_LOCKF
  407. - #undef HAVE_FLOCK
  408. - #ifndef LIBDIR
  409. - #define LIBDIR        "/usr/local/bin"
  410. - #endif
  411. - #ifndef SYSINIT
  412. - #define SYSINIT        "/usr/local/libdata/mm-0.91/mm.conf"
  413. - #endif
  414. - #ifndef HELPFILE
  415. - #define HELPFILE    "/pkg/mm-0.91p1/libdata/mm-0.91/mm.help"
  416. - #endif
  417. - #ifndef HELPDIR
  418. - #define HELPDIR        "/pkg/mm-0.91p1/libdata/mm-0.91/help"
  419. - #endif
  420. - #ifndef MMAIL_PATH
  421. - #define MMAIL_PATH    "/pkg/mm-0.91p1/libdata/mm-0.91/mmail.el"
  422. - #endif
  423. - #ifndef MOVEMAIL
  424. - #define MOVEMAIL    "/usr/local/bin/mdmovemail"
  425. - #endif
  426. - #endif /* MM_PANIX */
  427.   #endif /* COLUMBIA */
  428.   
  429.   #endif /* CONFIG_H_ */
  430. --- 50,55 ----
  431. *** /p/kd/fdc/mm/work/mm/dates.c    2006-01-08 15:20:38.264270000 -0500
  432. --- ./dates.c    2005-05-31 14:35:34.000000000 -0400
  433. ***************
  434. *** 229,237 ****
  435.   /*
  436.    * rfc822-acceptable date, like:
  437.    * Thu, 1 Jan 70 00:00:00 GMT
  438. -  * Apparently this routine is used only to construct the Resent-Date:.
  439. -  * New messages arrive with their dates already filled in (correctly).
  440. -  * Fixed 8 Jan 2006 to write the full year.
  441.    */
  442.   char *
  443.   #if HAVE_STDC
  444. --- 229,234 ----
  445. ***************
  446. *** 259,269 ****
  447.   #endif
  448.       sprintf(str,"%3.3s, %d %3.3s %d %d:%02d:%02d %s",
  449.           day_names[t->tm_wday],
  450. - #ifdef COMMENT
  451.           t->tm_mday, month_names[t->tm_mon], t->tm_year /*+ 1900*/,
  452. - #else  /* fdc 8 Jan 2006 */
  453. -         t->tm_mday, month_names[t->tm_mon], t->tm_year + 1900,
  454. - #endif    /* COMMENT */
  455.           t->tm_hour, t->tm_min, t->tm_sec,
  456.   #if BSD && !defined(__solaris) && !defined(_IBMR2) && !defined(__osf__) && !defined(HAVE_NEW_BSD) && !defined(HAVE_GNU_LINUX)
  457.           timezone(tb.timezone, t->tm_isdst)
  458. --- 256,262 ----
  459. *** /p/kd/fdc/mm/work/mm/display.c    2006-01-09 11:53:06.428949000 -0500
  460. --- ./display.c    2005-05-28 18:39:42.000000000 -0400
  461. ***************
  462. *** 2,13 ****
  463.   
  464.   #include "config.h"
  465.   /*
  466. !  * Copyright (C) 1986, 2006 by The Trustees of Columbia University in
  467.    * the City of New York.  Permission is granted to any individual or
  468.    * institution to use, copy, or redistribute this software so long as it
  469.    * is not sold for profit, provided this copyright notice is retained.
  470.    */
  471.   
  472.   /*
  473.    * display.c - support for the mm display command
  474.    */
  475. --- 2,17 ----
  476.   
  477.   #include "config.h"
  478.   /*
  479. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  480.    * the City of New York.  Permission is granted to any individual or
  481.    * institution to use, copy, or redistribute this software so long as it
  482.    * is not sold for profit, provided this copyright notice is retained.
  483.    */
  484.   
  485. + #ifndef lint
  486. + static const char *rcsid = "$Header: /usr/local/src/mm/mm-0.94/mm/RCS/display.c,v 1.2 2005/05/28 22:39:23 beebe Exp $";
  487. + #endif
  488.   /*
  489.    * display.c - support for the mm display command
  490.    */
  491. ***************
  492. *** 181,188 ****
  493.    * if expand is true, expand groups
  494.    */
  495.   
  496.   #ifdef DONT_EMIT_FROM_HEADERS
  497. - /* If this is defined REMAIL doesn't work right */
  498.   static int suppress_from_headers = 1;
  499.   #else
  500.   static int suppress_from_headers = 0;
  501. --- 185,192 ----
  502.    * if expand is true, expand groups
  503.    */
  504.   
  505.   #ifdef DONT_EMIT_FROM_HEADERS
  506.   static int suppress_from_headers = 1;
  507.   #else
  508.   static int suppress_from_headers = 0;
  509. ***************
  510. *** 200,212 ****
  511.   {
  512.       headers *h = msg->hdrs;
  513.   
  514. - #ifdef COMMENT
  515. -     extern void xxmsg(mail_msg *, char *, char);
  516. -     xxmsg(msg,"DISPLAY_HEADER",'A');
  517. -     printf(">>> DISPLAY_HEADER smail=%d\n",smail);
  518. -     printf(">>> DISPLAY_HEADER =%d\n",suppress_from_headers);
  519. - #endif    /* COMMENT */
  520.       if (smail && !suppress_from_headers && (msg->resent_to == NULL) &&
  521.       (msg->from == NULL || !valid_from_field(msg->from->string)))
  522.       write_sender(pipe);
  523. --- 204,209 ----
  524. *** /p/kd/fdc/mm/work/mm/mbox.c    2005-12-24 10:09:45.348048000 -0500
  525. --- ./mbox.c    2005-12-07 13:23:04.000000000 -0500
  526. ***************
  527. *** 56,64 ****
  528.    * Each mbox format message starts with a line of the form "From sender date"
  529.    * which may be followed by a flags line.
  530.    */
  531. - #define FROMLINELEN 256
  532. - static char fromline[FROMLINELEN] = { 0, 0 };
  533.   int
  534.   #if HAVE_STDC
  535.   mbox_rdmsg(msgvec *mail, int num)
  536. --- 56,61 ----
  537. ***************
  538. *** 121,128 ****
  539.       }                    /* do next message */
  540.   
  541.       /* now we have the header for the message we want */
  542. -     strncpy(fromline,header,FROMLINELEN-1); /* (for error message) */
  543.       cp = &header[keysize];        /* skip "From " (key) */
  544.       while (isspace (*cp) && *cp != '\0') /* get to actual name */
  545.       cp++;
  546. --- 118,123 ----
  547. ***************
  548. *** 148,162 ****
  549.   
  550.   /*    date = stringtotime (cp); */
  551.       date = mbox_date(cp);
  552. !     if (date == 0) {
  553. !         fprintf (stderr,"%s\n",fromline); /* fdc 24 dec 2005 */
  554. !         fprintf (stderr,
  555. !          "Message %d has bad date string [%s] (continuing):\n",
  556. !          num,
  557. !          cp
  558. !          );
  559. !     date = time((time_t)0);        /* fdc 22 dec 2005 */
  560. !     }
  561.       /* now get the rest of the message */
  562.       buflen = 0;
  563.       /* get some space for body of msg */
  564. --- 143,151 ----
  565.   
  566.   /*    date = stringtotime (cp); */
  567.       date = mbox_date(cp);
  568. !     if (date == 0)
  569. !         fprintf (stderr,"Message %d has bad date string (continuing)\n", num);
  570.       /* now get the rest of the message */
  571.       buflen = 0;
  572.       /* get some space for body of msg */
  573. *** /p/kd/fdc/mm/work/mm/misc.c    2006-01-08 12:58:09.144343000 -0500
  574. --- ./misc.c    2005-12-07 13:29:20.000000000 -0500
  575. ***************
  576. *** 1,7 ****
  577.   #include "args.h"
  578.   #include "config.h"
  579.   /*
  580. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  581.    * the City of New York.  Permission is granted to any individual or
  582.    * institution to use, copy, or redistribute this software so long as it
  583.    * is not sold for profit, provided this copyright notice is retained.
  584. --- 1,7 ----
  585.   #include "args.h"
  586.   #include "config.h"
  587.   /*
  588. !  * Copyright (c) 1986, 2003 by The Trustees of Columbia University in
  589.    * the City of New York.  Permission is granted to any individual or
  590.    * institution to use, copy, or redistribute this software so long as it
  591.    * is not sold for profit, provided this copyright notice is retained.
  592. ***************
  593. *** 44,50 ****
  594.   {
  595.       confirm ();
  596.       printf ("%s\n", mm_version);
  597. !     puts("Copyright (C) 1986, 2006\n\
  598.   \tThe Trustees of Columbia University in the City of New York");
  599.       printf ("Compiled %s\n", mm_compiled);
  600.       printf ("Report bugs to %s\n", BUGSTO);
  601. --- 44,50 ----
  602.   {
  603.       confirm ();
  604.       printf ("%s\n", mm_version);
  605. !     puts("Copyright (c) 1986, 2005\n\
  606.   \tThe Trustees of Columbia University in the City of New York");
  607.       printf ("Compiled %s\n", mm_compiled);
  608.       printf ("Report bugs to %s\n", BUGSTO);
  609. *** /p/kd/fdc/mm/work/mm/mm.c    2006-01-08 18:37:04.082862000 -0500
  610. --- ./mm.c    2005-12-07 17:21:16.000000000 -0500
  611. ***************
  612. *** 1,5 ****
  613.   /*
  614. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  615.    * the City of New York.  Permission is granted to any individual or
  616.    * institution to use, copy, or redistribute this software so long as it
  617.    * is not sold for profit, provided this copyright notice is retained.
  618. --- 1,5 ----
  619.   /*
  620. !  * Copyright (c) 1986, 2005 by The Trustees of Columbia University in
  621.    * the City of New York.  Permission is granted to any individual or
  622.    * institution to use, copy, or redistribute this software so long as it
  623.    * is not sold for profit, provided this copyright notice is retained.
  624. *** /p/kd/fdc/mm/work/mm/s-sun50.h    2006-01-09 11:52:04.814628000 -0500
  625. --- ./s-sun50.h    2005-05-31 11:48:13.000000000 -0400
  626. ***************
  627. *** 2,13 ****
  628.   #define S_SUN50_H_
  629.   
  630.   /*
  631. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  632.    * the City of New York.  Permission is granted to any individual or
  633.    * institution to use, copy, or redistribute this software so long as it
  634.    * is not sold for profit, provided this copyright notice is retained.
  635.    */
  636.   
  637.   /*
  638.    * s-sun50.h - configuration file for sunos 5.0
  639.    */
  640. --- 2,19 ----
  641.   #define S_SUN50_H_
  642.   
  643.   /*
  644. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  645.    * the City of New York.  Permission is granted to any individual or
  646.    * institution to use, copy, or redistribute this software so long as it
  647.    * is not sold for profit, provided this copyright notice is retained.
  648.    */
  649.   
  650. + #ifdef RCSID
  651. + #ifndef lint
  652. + static const char *s_sun50_rcsid = "$Header: /usr/local/src/mm/mm-0.94/mm/RCS/s-sun50.h,v 1.3 2005/05/31 15:45:22 beebe Exp $";
  653. + #endif
  654. + #endif /* RCSID */
  655.   /*
  656.    * s-sun50.h - configuration file for sunos 5.0
  657.    */
  658. ***************
  659. *** 228,233 ****
  660. --- 234,240 ----
  661.   #undef HAVE_F_SETLK            /* we have fcntl(fd, F_SETLK, ...) */
  662.   #undef HAVE_LOCKF            /* lockf works too */
  663.   #undef HAVE_FLOCK            /* flock locks whole files */
  664.   /*
  665.    * If your /bin/mail program uses the flock(2) system call to prevent
  666.    * simultaneous access to files in /usr/mail or /usr/spool/mail, define
  667. *** /p/kd/fdc/mm/work/mm/sendcmds.c    2006-01-08 17:00:43.453748000 -0500
  668. --- ./sendcmds.c    2005-12-07 15:20:25.000000000 -0500
  669. ***************
  670. *** 2,8 ****
  671.   #include "config.h"
  672.   
  673.   /*
  674. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  675.    * the City of New York.  Permission is granted to any individual or
  676.    * institution to use, copy, or redistribute this software so long as it
  677.    * is not sold for profit, provided this copyright notice is retained.
  678. --- 2,8 ----
  679.   #include "config.h"
  680.   
  681.   /*
  682. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  683.    * the City of New York.  Permission is granted to any individual or
  684.    * institution to use, copy, or redistribute this software so long as it
  685.    * is not sold for profit, provided this copyright notice is retained.
  686. ***************
  687. *** 757,769 ****
  688.   addresslist *to;
  689.   #endif /* HAVE_STDC */
  690.   {
  691. -     /* extern void xxmsg(mail_msg *, char *, char); */
  692.       /* not a memory leak unless parse_msg starts to malloc */
  693.       msg = parse_msg(&(cf->msgs[which]));
  694. -     /* (void)xxmsg(msg,"DO_REMAIL_ONE",'A'); */
  695.       if (msg->resent_to) {
  696.       free_header(msg, RESENT_TO);
  697.       }
  698. --- 757,764 ----
  699. ***************
  700. *** 774,785 ****
  701.       if (msg->resent_date)
  702.       free_header(msg, RESENT_DATE);
  703.       new_header(RESENT_DATE, "Resent-Date", HEAD_KNOWN, msg);
  704. - #ifdef COMMENT
  705.       msg->resent_date->string = safe_strcpy(rfctime(time(0)));
  706. - #else
  707. -     msg->resent_date->string = safe_strcpy(rfctime((time_t)0));
  708. - #endif    /* COMMENT */
  709.       if (msg->resent_from)
  710.       free_header(msg, RESENT_FROM);
  711.       new_header(RESENT_FROM, "Resent-From", HEAD_KNOWN, msg);
  712. --- 769,775 ----
  713. ***************
  714. *** 787,795 ****
  715.       msg->resent_from->string = safe_strcpy(create_sender());
  716.       if (msg->to)
  717.           files_to_fcc(msg->to->address, msg);
  718. -     /* (void)xxmsg(msg,"DO_REMAIL_ONE",'B'); */
  719.       sendmail(msg);
  720.   }
  721.   
  722. --- 777,782 ----
  723. *** /p/kd/fdc/mm/work/mm/sendmail.c    2006-01-09 12:07:38.750108000 -0500
  724. --- ./sendmail.c    2005-05-28 18:39:44.000000000 -0400
  725. ***************
  726. *** 55,80 ****
  727.   #define SIGNATURE ".signature"
  728.   #define sendmail_who_cmd "/usr/lib/sendmail -bv"
  729.   
  730. - /* From REMAIL debugging session 8 Jan 2006 */
  731. - void
  732. - xxmsg(mail_msg *m, char *name, char c) {
  733. -     if (m->resent_date)
  734. -       printf(">>> %s[%c] m->resent_date->string=[%s]\n",name,c,
  735. -          m->resent_date->string ? m->resent_date->string : "");
  736. -     else
  737. -       printf(">>> %s[%c] m->resent_date=[(NULL)]\n",name,c);
  738. -     if (m->resent_from)
  739. -       printf(">>> %s[%c] m->resent_from->string=[%s]\n",name,c,
  740. -          m->resent_from->string ? m->resent_from->string : "");
  741. -     else
  742. -       printf(">>> %s[%c] m->resent_from=[(NULL)]\n",name,c);
  743. -     if (m->from)
  744. -       printf(">>> %s[%c] m->from->string=[%s]\n",name,c,
  745. -          m->from->string ? m->from->string : "");
  746. -     else
  747. -       printf(">>> %s[%c] m->from=[(NULL)]\n",name,c);
  748. - }
  749.   /*
  750.    * sendmail:
  751.    * accepts a mail_msg and forks up sendmail(8) and sends the message.
  752. --- 55,60 ----
  753. ***************
  754. *** 93,104 ****
  755.     int i, pid, mailit, fileit, saveit, failed = FALSE;
  756.     char *signature = NULL;
  757.   
  758. -   /* xxmsg(m, "SENDMAIL", 'A'); */
  759.     /*
  760.      * Make sure the headers are complete.  This is probably the wrong
  761.      * place to do it, but...
  762.      */
  763.     if (!m->date) {
  764.         headers *h = m->hdrs, *t = m->last, *x;
  765.         m->date = x = new_header (DATE, "Date", HEAD_KNOWN, m);
  766. --- 73,83 ----
  767.     int i, pid, mailit, fileit, saveit, failed = FALSE;
  768.     char *signature = NULL;
  769.   
  770.     /*
  771.      * Make sure the headers are complete.  This is probably the wrong
  772.      * place to do it, but...
  773.      */
  774.     if (!m->date) {
  775.         headers *h = m->hdrs, *t = m->last, *x;
  776.         m->date = x = new_header (DATE, "Date", HEAD_KNOWN, m);
  777. ***************
  778. *** 113,138 ****
  779.         m->hdrs = x;
  780.         }
  781.     }
  782. -   /* xxmsg(m, "SENDMAIL", 'B'); */
  783.     if (!m->message_id) {
  784.         char temp[256];
  785.   
  786.         sprintf (temp, "<CMM.%d.%d.%d.%ld.%s@%s>",
  787. !            mm_major_version, mm_minor_version, mm_patch_level,
  788. !            (long)time(0), user_name, fullhostname);
  789.         m->message_id = new_header (MESSAGE_ID, "Message-ID", HEAD_KNOWN, m);
  790.         m->message_id->string = safe_strcpy (temp);
  791.     }
  792.   
  793. -   /* xxmsg(m, "SENDMAIL", 'C'); */
  794.     /* build recipient lists */
  795.     mailit = build_recipients (&argv, &Files, m);
  796. -   /* xxmsg(m, "SENDMAIL", 'D'); */
  797.     /* do we need to file this? */
  798.     saveit = *saved_messages_file &&
  799.         strcmp (saved_messages_file, "/dev/null") != 0;
  800. --- 92,109 ----
  801.         m->hdrs = x;
  802.         }
  803.     }
  804.     if (!m->message_id) {
  805.         char temp[256];
  806.   
  807.         sprintf (temp, "<CMM.%d.%d.%d.%ld.%s@%s>",
  808. !            mm_major_version, mm_minor_version, mm_patch_level, (long)time(0),
  809. !            user_name, fullhostname);
  810.         m->message_id = new_header (MESSAGE_ID, "Message-ID", HEAD_KNOWN, m);
  811.         m->message_id->string = safe_strcpy (temp);
  812.     }
  813.   
  814.     /* build recipient lists */
  815.     mailit = build_recipients (&argv, &Files, m);
  816.     /* do we need to file this? */
  817.     saveit = *saved_messages_file &&
  818.         strcmp (saved_messages_file, "/dev/null") != 0;
  819. ***************
  820. *** 158,164 ****
  821.     if (!sendmail_verbose && !send_verbose) {
  822.       printf("Sending... "); fflush(stdout);
  823.     }
  824. !   /* xxmsg(m, "SENDMAIL", 'E'); */
  825.     /*
  826.      * Fire up sendmail for non-file recipients
  827.      */
  828. --- 129,135 ----
  829.     if (!sendmail_verbose && !send_verbose) {
  830.       printf("Sending... "); fflush(stdout);
  831.     }
  832.     /*
  833.      * Fire up sendmail for non-file recipients
  834.      */
  835. ***************
  836. *** 181,187 ****
  837.   
  838.             new_process_group ();
  839.   
  840. -           /* xxmsg(m, "SENDMAIL", 'F'); */
  841.             (void) execv (SENDMAIL, argv);
  842.             _exit (errno);
  843.         }
  844. --- 152,157 ----
  845. ***************
  846. *** 949,956 ****
  847.       char *tfile = mktempfile (PRE_SENDMAIL, TRUE);
  848.       FILE *tfp;
  849.       
  850. -     /* xxmsg((mail_msg *)m, "MESSAGE_TMPFILE", 'A'); */
  851.       if ((tfp = fopen (tfile, "w+")) == NULL) {
  852.       fprintf (stderr, "Cannot create temp file %s: %s\n",
  853.            tfile, errstr (errno));
  854. --- 919,924 ----
  855. ***************
  856. *** 961,968 ****
  857.            tfile, errstr (errno));
  858.   
  859.       display_header (tfp, (mail_msg*)m, FALSE, for_sendmail);
  860. -     /* xxmsg((mail_msg *)m, "MESSAGE_TMPFILE", 'B'); */
  861.       fputc ('\n', tfp);
  862.       display_text (tfp, (mail_msg*)m);    /* write out the body of the message */
  863.       if (signature) {
  864. --- 929,934 ----
  865. ***************
  866. *** 971,980 ****
  867.       }
  868.       fflush (tfp);
  869.       rewind (tfp);            /* rewind to beginning of file */
  870. -     /* xxmsg((mail_msg *)m, "MESSAGE_TMPFILE", 'C'); */
  871. -     /* printf(">>> SENDMAIL TEMP FILE=[%s]\n",tfile); */
  872.       unlink (tfile);
  873.       free(tfile);
  874.       return tfp;
  875. --- 937,942 ----
  876. *** /p/kd/fdc/mm/work/mm/set.h    2006-01-09 13:00:37.389391000 -0500
  877. --- ./set.h    2005-12-07 15:39:33.000000000 -0500
  878. ***************
  879. *** 1,7 ****
  880.   /*
  881. !  * DON'T EDIT set.h - Make changes in set.hh.
  882. !  *
  883. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  884.    * the City of New York.  Permission is granted to any individual or
  885.    * institution to use, copy, or redistribute this software so long as it
  886.    * is not sold for profit, provided this copyright notice is retained.
  887. --- 1,5 ----
  888.   /*
  889. !  * Copyright (c) 1986, 2002 by The Trustees of Columbia University in
  890.    * the City of New York.  Permission is granted to any individual or
  891.    * institution to use, copy, or redistribute this software so long as it
  892.    * is not sold for profit, provided this copyright notice is retained.
  893. *** /p/kd/fdc/mm/work/mm/token.h    2006-01-09 13:00:57.403357000 -0500
  894. --- ./token.h    2005-05-31 10:43:13.000000000 -0400
  895. ***************
  896. *** 1,7 ****
  897.   /*
  898. !  * DON'T EDIT tokens.h - Make changes in tokens.hh.
  899. !  *
  900. !  * Copyright (c) 1986, 2006 by The Trustees of Columbia University in
  901.    * the City of New York.  Permission is granted to any individual or
  902.    * institution to use, copy, or redistribute this software so long as it
  903.    * is not sold for profit, provided this copyright notice is retained.
  904. --- 1,8 ----
  905. + #ifndef TOKEN_H_
  906. + #define TOKEN_H_
  907.   /*
  908. !  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  909.    * the City of New York.  Permission is granted to any individual or
  910.    * institution to use, copy, or redistribute this software so long as it
  911.    * is not sold for profit, provided this copyright notice is retained.
  912. ***************
  913. *** 9,15 ****
  914.   
  915.   #ifdef RCSID
  916.   #ifndef lint
  917. ! static char *token_rcsid = "$Header: /usr/local/src/mm/mm-0.94/mm/RCS/token.H,v 1.3 2005/05/31 14:43:11 beebe Exp beebe $";
  918.   #endif
  919.   #endif /* RCSID */
  920.   
  921. --- 10,16 ----
  922.   
  923.   #ifdef RCSID
  924.   #ifndef lint
  925. ! static const char *token_rcsid = "$Header: /usr/local/src/mm/mm-0.94/mm/RCS/token.h,v 1.4 2005/05/31 14:43:11 beebe Exp beebe $";
  926.   #endif
  927.   #endif /* RCSID */
  928.   
  929. ***************
  930. *** 48,50 ****
  931. --- 49,53 ----
  932.   #ifdef MAIL11
  933.   #define T_MAIL11         23              /* mail11 address */
  934.   #endif
  935. + #endif /* TOKEN_H_ */
  936. *** /p/kd/fdc/mm/work/mm/version.h    2006-01-09 13:00:59.077686000 -0500
  937. --- ./version.h    2005-12-07 17:33:23.000000000 -0500
  938. ***************
  939. *** 5,10 ****
  940.   #include "mm-patchlevel.h"
  941.   #define MM_MAJOR 0
  942.   #define MM_MINOR 95
  943. ! #define MM_EDIT 68
  944. ! #define MM_VERSION "Columbia MM, version 0.95.0(68)"
  945. ! #define MM_COMPILED "by fdc@sesame.cc.columbia.edu on 9 Jan 2006 1:00pm"
  946. --- 5,10 ----
  947.   #include "mm-patchlevel.h"
  948.   #define MM_MAJOR 0
  949.   #define MM_MINOR 95
  950. ! #define MM_EDIT 42
  951. ! #define MM_VERSION "Columbia MM, version 0.95.0(42)"
  952. ! #define MM_COMPILED "by fdc@sesame.cc.columbia.edu on 7 Dec 2005 5:33pm"
  953.