diff --git a/src/elogd.c b/src/elogd.c index 98fd888f..b5d10e67 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -8714,7 +8714,7 @@ char reply_to[MAX_REPLY_TO * 10], attr[MAX_N_ATTR][NAME_LENGTH], list[MAX_N_ATTR if (!strieq(attrib[i], attr[i])) sprintf(attrib[i], "- %s -", loc("keep original values")); } - *n++; + (*n)++; if (isparam("elmode") && strieq(getparam("elmode"), "threaded")) { // go through all replies in threaded mode @@ -8819,16 +8819,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL memset(attrib, 0, sizeof(attrib)); for (i = n = 0; i < atoi(getparam("nsel")); i++) { sprintf(str, "s%d", i); - if (isparam(str)) { - if (n == 0) { - size = TEXT_SIZE; - el_retrieve(lbs, atoi(getparam(str)), date, attr_list, attrib, lbs->n_attr, - text, &size, orig_tag, reply_tag, att, encoding, locked_by); - - } - + if (isparam(str)) compare_attributes(lbs, atoi(getparam(str)), attrib, &n); - } } } } @@ -9505,28 +9497,30 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } } - time(&now); - if (bedit) { - if (!getcfg(lbs->name, "Time format", format, sizeof(format))) - strcpy(format, DEFAULT_TIME_FORMAT); + if (!isparam("nsel")) { + time(&now); + if (bedit) { + if (!getcfg(lbs->name, "Time format", format, sizeof(format))) + strcpy(format, DEFAULT_TIME_FORMAT); - ltime = date_to_ltime(date); - pts = localtime(<ime); - assert(pts); - my_strftime(str, sizeof(str), format, pts); - } else { - if (getcfg(lbs->name, "Time format", format, sizeof(format))) - my_strftime(str, sizeof(str), format, localtime(&now)); - else - strcpy(str, ctime(&now)); - strcpy(date, ctime(&now)); - date[24] = 0; + ltime = date_to_ltime(date); + pts = localtime(<ime); + assert(pts); + my_strftime(str, sizeof(str), format, pts); + } else { + if (getcfg(lbs->name, "Time format", format, sizeof(format))) + my_strftime(str, sizeof(str), format, localtime(&now)); + else + strcpy(str, ctime(&now)); + strcpy(date, ctime(&now)); + date[24] = 0; + } + + rsprintf("