OP_COMPOSE_EDIT_NEWSGROUPS "edit the newsgroups list"
OP_COMPOSE_EDIT_REPLY_TO "edit the Reply-To field"
OP_COMPOSE_EDIT_FOLLOWUP_TO "edit the Followup-To field"
-OP_COMPOSE_EDIT_X_COMMENT_TO "edit the X-Comment-To field"
OP_COMPOSE_EDIT_SUBJECT "edit the subject of this message"
OP_COMPOSE_EDIT_TO "edit the TO list"
OP_CREATE_MAILBOX "create a new mailbox (IMAP only)"
mutt_paddstr (W, NONULL (msg->env->newsgroups));
mvprintw (HDR_CC, SW, TITLE_FMT, Prompts[HDR_FOLLOWUPTO - 1]);
mutt_paddstr (W, NONULL (msg->env->followup_to));
- if (option (OPTXCOMMENTTO)) {
- mvprintw (HDR_BCC, 0, TITLE_FMT, Prompts[HDR_XCOMMENTTO - 1]);
- mutt_paddstr (W, NONULL (msg->env->x_comment_to));
- }
}
#endif
mvprintw (HDR_SUBJECT, SW, TITLE_FMT, Prompts[HDR_SUBJECT - 1]);
}
break;
- case OP_COMPOSE_EDIT_X_COMMENT_TO:
- if (news && option (OPTXCOMMENTTO)) {
- buf[0] = 0;
- if (msg->env->x_comment_to)
- m_strcpy(buf, sizeof(buf), msg->env->x_comment_to);
- if (mutt_get_field ("X-Comment-To: ", buf, sizeof (buf), 0) == 0
- && buf[0]) {
- p_delete(&msg->env->x_comment_to);
- msg->env->x_comment_to = m_strdup(buf);
- move (HDR_BCC, HDR_XOFFSET);
- clrtoeol ();
- if (msg->env->x_comment_to)
- printw ("%-*.*s", W, W, msg->env->x_comment_to);
- }
- }
- break;
#endif
case OP_COMPOSE_EDIT_SUBJECT:
if (msg->env->subject)
#ifdef USE_NNTP
ITEM("edit-newsgroups", OP_COMPOSE_EDIT_NEWSGROUPS, "N")
ITEM("edit-followup-to", OP_COMPOSE_EDIT_FOLLOWUP_TO, "o")
- ITEM("edit-x-comment-to", OP_COMPOSE_EDIT_X_COMMENT_TO, "x")
#endif
ITEM("postpone-message", OP_COMPOSE_POSTPONE_MESSAGE, "P")
ITEM("edit-reply-to", OP_COMPOSE_EDIT_REPLY_TO, "r")
** If \fIset\fP, Madmutt will prompt you for the \fTFollowup-To:\fP header
** field before editing the body of an outgoing news article.
*/
- {"nntp_ask_x_comment_to", DT_BOOL, R_NONE, OPTASKXCOMMENTTO, "no" },
- /*
- ** .pp
- ** Availability: NNTP
- **
- ** .pp
- ** If \fIset\fP, Madmutt will prompt you for the \fTX-Comment-To:\fP header
- ** field before editing the body of an outgoing news article.
- */
#endif
{"attach_format", DT_STR, R_NONE, UL &AttachFormat, "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "},
/*
** $$xterm_set_titles has been \fIset\fP. This string is identical in formatting
** to the one used by ``$$status_format''.
*/
-#ifdef USE_NNTP
- {"nntp_x_comment_to", DT_BOOL, R_NONE, OPTXCOMMENTTO, "no" },
- /*
- ** .pp
- ** Availability: NNTP
- **
- ** .pp
- ** If \fIset\fP, Madmutt will add a ``\fTX-Comment-To:\fP'' header field
- ** (that contains full name of the original article author) to articles that
- ** you followup to.
- */
-#endif
/*--*/
{ NULL, -1, R_NONE, -1, NULL }
};
us-ascii
utf-8
video
-x-comment-to
x-convert
x-label
x-mutt-deleted
char *newsgroups;
char *xref;
char *followup_to;
- char *x_comment_to;
#endif
BUFFER *spam;
string_list_t *references; /* message references (in reverse order) */
p_delete(&p->newsgroups);
p_delete(&p->xref);
p_delete(&p->followup_to);
- p_delete(&p->x_comment_to);
#endif
mutt_buffer_free (&p->spam);
e->to = rfc822_parse_adrlist(e->to, p);
break;
-#ifdef USE_NNTP
- case MIME_X_COMMENT_TO:
- if (!e->x_comment_to)
- e->x_comment_to = m_strdup(p);
- break;
-#endif
-
case MIME_X_LABEL:
e->x_label = m_strdup(p);
break;
dump_cstr(buf, e->newsgroups);
dump_cstr(buf, e->xref);
dump_cstr(buf, e->followup_to);
- dump_cstr(buf, e->x_comment_to);
#endif
dump_list(buf, e->references);
d = restore_cstr(d, &e->newsgroups);
d = restore_cstr(d, &e->xref);
d = restore_cstr(d, &e->followup_to);
- d = restore_cstr(d, &e->x_comment_to);
#endif
d = restore_list(d, &e->references);
OPTASKBCC,
OPTASKCC,
OPTASKFOLLOWUP,
- OPTASKXCOMMENTTO,
OPTATTACHSPLIT,
OPTAUTOEDIT,
OPTAUTOTAG,
OPTSHOWONLYUNREAD,
OPTSAVEUNSUB,
OPTLOADDESC,
- OPTXCOMMENTTO,
#endif /* USE_NNTP */
/* pseudo options */
return (-1);
p_delete(&en->followup_to);
en->followup_to = m_strdup(buf);
-
- if (en->x_comment_to)
- m_strcpy(buf, sizeof(buf), en->x_comment_to);
- else
- buf[0] = 0;
- if (option (OPTXCOMMENTTO) && option (OPTASKXCOMMENTTO)
- && mutt_get_field ("X-Comment-To: ", buf, sizeof (buf), 0) != 0)
- return (-1);
- p_delete(&en->x_comment_to);
- en->x_comment_to = m_strdup(buf);
- }
- else
+ } else
#endif
{
if (edit_address (&en->to, "To: ") == -1 || en->to == NULL)
case MIME_FOLLOWUP_TO:
env->followup_to = nntp_get_header(p);
break;
- case MIME_X_COMMENT_TO:
- env->x_comment_to = nntp_get_header(p);
- break;
#endif
default: break;
}
#ifdef USE_NNTP
case MIME_NEWSGROUPS:
case MIME_FOLLOWUP_TO:
- case MIME_X_COMMENT_TO:
#endif
case MIME_SUPERSEDES:
case MIME_SUPERCEDES:
}
else if (!env->subject)
env->subject = m_strdup("Re: your mail");
-
-#ifdef USE_NNTP
- if (option (OPTNEWSSEND) && option (OPTXCOMMENTTO) && curenv->from)
- env->x_comment_to = m_strdup(mutt_get_name (curenv->from));
-#endif
}
static string_list_t *mutt_make_references (ENVELOPE * e)
fprintf (fp, "Followup-To: %s\n", env->followup_to);
else if (mode == 1 && option (OPTNEWSSEND) && edit_header(mode, "Followup-To:"))
fputs ("Followup-To:\n", fp);
-
- if (env->x_comment_to)
- fprintf (fp, "X-Comment-To: %s\n", env->x_comment_to);
- else if (mode == 1 && option (OPTNEWSSEND) && option (OPTXCOMMENTTO) &&
- edit_header(mode, "X-Comment-To:"))
- fputs ("X-Comment-To:\n", fp);
#endif
if (env->subject)