scr_printf("%s\n", &buf[4]);
return;
}
- if (client_make_message(ipc, temp, touser, 0, 0, 0, NULL) != 0) {
+ if (client_make_message(ipc, temp, touser, 0, 0, 0, NULL, 0) != 0) {
scr_printf("No message sent.\n");
return;
}
* Function to begin composing a new message
*/
int client_make_message(CtdlIPC *ipc,
- char *filename, /* temporary file name */
- char *recipient, /* NULL if it's not mail */
- int is_anonymous,
- int format_type,
- int mode,
- char *subject) /* buffer to store subject line */
+ char *filename, /* temporary file name */
+ char *recipient, /* NULL if it's not mail */
+ int is_anonymous,
+ int format_type,
+ int mode,
+ char *subject, /* buffer to store subject line */
+ int subject_required)
{
FILE *fp;
int a, b, e_ex_code;
if (subject != NULL) if (strlen(subject) > 0) {
scr_printf("Subject: %s\n", subject);
}
+
+ if (subject_required) {
+ scr_printf("Internet mail recommends a subject.\n");
+ newprompt("Subject: ", subject, 70);
+ }
beg = 0L;
/* Now compose the message... */
if (client_make_message(ipc, temp, message.recipient,
- message.anonymous, 0, c, message.subject) != 0) {
+ message.anonymous, 0, c, message.subject, subject_required) != 0) {
if (msgarr) free(msgarr);
return (2);
}
void list_urls(CtdlIPC *ipc);
void check_message_base(CtdlIPC *ipc);
int client_make_message(CtdlIPC *ipc,
- char *filename, /* temporary file name */
- char *recipient, /* NULL if it's not mail */
- int anon_type, /* see MES_ types in header file */
- int format_type,
- int mode,
- char *subject);
+ char *filename, /* temporary file name */
+ char *recipient, /* NULL if it's not mail */
+ int anon_type, /* see MES_ types in header file */
+ int format_type,
+ int mode,
+ char *subject,
+ int subject_required);
void citedit(CtdlIPC *ipc, FILE *);
char *load_message_from_file(FILE *src);
int file_checksum(char *filename);