next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects
Index of Subjects On Sat, 19 Sep 1998, David Lott wrote: > Can someone please point me in the right direction to accomplish this? At LYNews.c:130, you'll see: /* * Get the mail address for the From header, * offering personal_mail_address as default. */ addstr(_("\n\n Please provide your mail address for the From: header\n")); strcpy(user_input, "From: "); if (personal_mail_address) strcat(user_input, personal_mail_address); if (LYgetstr(user_input, VISIBLE, sizeof(user_input), NORECALL) < 0 || term_message) { _statusline(NEWS_POST_CANCELLED); sleep(InfoSecs); fclose(fd); /* Close the temp file. */ scrollok(stdscr, FALSE); /* Stop scrolling. */ goto cleanup; } Move addstr down 4 lines and add an #ifdef 0 / #endif to get: /* * Get the mail address for the From header, * offering personal_mail_address as default. */ strcpy(user_input, "From: "); if (personal_mail_address) strcat(user_input, personal_mail_address); #ifdef 0 addstr(_("\n\n Please provide your mail address for the From: header\n")); if (LYgetstr(user_input, VISIBLE, sizeof(user_input), NORECALL) < 0 || term_message) { _statusline(NEWS_POST_CANCELLED); sleep(InfoSecs); fclose(fd); /* Close the temp file. */ scrollok(stdscr, FALSE); /* Stop scrolling. */ goto cleanup; } #endif That should do it (this should probably be a configuration option, but it's not, yet). cd .. && rm lynx && make. BTW, this assumes that the user's Personal Mail Address in s)ettings is set right, otherwise it'll always come out as NONE. --- Michael Smith michael@csuite.ns.ca ---
next message in archive
next message in thread
previous message in archive
previous message in thread
Index of Subjects