diff --git a/STRINGS.CHANGES b/STRINGS.CHANGES index b81280b..bea657f 100644 --- a/STRINGS.CHANGES +++ b/STRINGS.CHANGES @@ -79,6 +79,14 @@ LINE 190 MODIFIED OLDSTRING: "\e[1;30m[\e[1;34;44m%4d\e[1;30;40m] \e[1;37m%-25.25s \e[1;32m%-15.15s \e[1;33m%-15.15s \e[1;35m%02d:%02d %02d-%02d-%02d\e[K\e[0m\r\n" NEWSTRING: "\e[1;30m[\e[1;34;44m%5d\e[1;30;40m] \e[1;37m%-24.24s \e[1;32m%-15.15s \e[1;33m%-15.15s \e[1;35m%02d:%02d %02d-%02d-%02d\e[K\e[0m\r\n" +LINE 115 MODIFIED +OLDSTRING: "\r\n\r\nReplying to: %s\r\n" +NEWSTRING: "\r\n\e[1;32m To: \e[0m" + +LINE 116 MODIFIED +OLDSTRING: "Change Subject? (Y/N) " +NEWSTRING: "\r\n\e[1;32mSubject: \e[0m" + Changes from v0.8-alpha -> v0.9-alpha -------------------------------------------------------------- LINE: 255 NEW diff --git a/dist/magicka.strings b/dist/magicka.strings index 3d96605..0b288ff 100644 --- a/dist/magicka.strings +++ b/dist/magicka.strings @@ -112,8 +112,8 @@ Quoting Cancelled\r\n \e[1;30m-------------------------------------------------------------------------------\e[0m\r\n \r\n\e[1;37mPress \e[1;36mR \e[1;37mto reply, \e[1;36mQ \e[1;37mto quit, \e[1;36mB \e[1;37mto go Back, \e[1;36mSPACE \e[1;37mfor Next Mesage... \r\nSorry, you are not allowed to post in this area\r\n -\r\n\r\nReplying to: %s\r\n -Change Subject? (Y/N) +\r\n\e[1;32m To: \e[0m +\r\n\e[1;32mSubject: \e[0m \r\nNew subject: \r\nOk, not changing the subject line... \r\n\r\nNo more messages\r\n diff --git a/src/mail_menu.c b/src/mail_menu.c index 2fe08db..382ea55 100644 --- a/src/mail_menu.c +++ b/src/mail_menu.c @@ -1700,23 +1700,14 @@ int read_message(struct user_record *user, struct msg_headers *msghs, int mailno subject = (char *)malloc(strlen(buffer) + 1); strcpy(subject, buffer); - s_printf(get_string(114), subject); + s_printf(get_string(114)); + s_readstring_inject(buffer, 32, msghs->msgs[mailno]->from); + to = strdup(buffer); s_printf(get_string(115)); + s_readstring_inject(buffer, 64, subject); + free(subject); + subject = strdup(buffer); - c = s_getc(); - - if (tolower(c) == 'y') { - s_printf(get_string(116)); - s_readstring(buffer, 25); - - if (strlen(buffer) == 0) { - s_printf(get_string(117)); - } else { - free(subject); - subject = (char *)malloc(strlen(buffer) + 1); - strcpy(subject, buffer); - } - } s_printf("\r\n"); if (msghs->msgs[mailno]->from != NULL) { @@ -1730,11 +1721,9 @@ int read_message(struct user_record *user, struct msg_headers *msghs, int mailno sprintf(from, "%s %s", user->firstname, user->lastname); } if (conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->type == TYPE_NEWSGROUP_AREA) { + free(to); to = (char *)malloc(4); strcpy(to, "ALL"); - } else { - to = (char *)malloc(strlen(buffer) + 1); - strcpy(to, buffer); } replybody = external_editor(user, to, from, body, z2, msghs->msgs[mailno]->from, subject, 0, 0); if (replybody != NULL) { @@ -2128,7 +2117,7 @@ void post_message(struct user_record *user) { sprintf(buffer, "ALL"); } else { s_printf(get_string(54)); - s_readstring(buffer, 16); + s_readstring(buffer, 32); } if (strlen(buffer) == 0) { strcpy(buffer, "ALL");