From 75026ee5b60b51705ee58e9648a569b6c4d0c350 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 14 Apr 2003 08:43:11 +0000 Subject: [PATCH] Fixed bug that attachments got deleted if one replies to a message SVN revision: 497 --- src/elogd.c | 40 +++++++++------------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 6edb682f..5f3d3211 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.83 2003/04/14 08:43:11 midas + Fixed bug that attachments got deleted if one replies to a message + Revision 1.82 2003/04/11 07:25:52 midas Eliminated WEB_BUFFER_SIZE and made memory allocation dynamically @@ -2912,6 +2915,7 @@ char file_name[256], dir[256], str[NAME_LENGTH]; time_t now, ltime; char message[TEXT_SIZE+100], *p, *buffer; BOOL bedit; +char attachment_all[64*MAX_ATTACHMENTS]; /* generate new file name YYMMDD.log in data directory */ strcpy(dir, lbs->data_dir); @@ -2970,6 +2974,7 @@ BOOL bedit; el_decode(message, "Reply to: ", reply_to); if (equal_ustring(in_reply_to, "")) el_decode(message, "In reply to: ", in_reply_to); + el_decode(message, "Attachment: ", attachment_all); /* buffer tail of logfile */ lseek(fh, 0, SEEK_END); @@ -3069,33 +3074,12 @@ BOOL bedit; for (i=0 ; in_attr, message, in_reply_to, reply_to, enc, att, TRUE);