patch, in how the "format=flowed" parameter is used.
/*
- * Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
+ * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
WHERE char *AttachFormat;
WHERE char *Charset;
WHERE char *ComposeFormat;
+WHERE char *ContentType;
WHERE char *DefaultHook;
WHERE char *DateFmt;
WHERE char *DisplayFilter;
** many seconds if the connection is not able to be established. A negative
** value causes Mutt to wait indefinitely for the connection to succeed.
*/
+ { "content_type", DT_STR, R_NONE, UL &ContentType, UL "text/plain" },
+ /*
+ ** .pp
+ ** Sets the default Content-Type for the body of newly composed messages.
+ */
{ "copy", DT_QUAD, R_NONE, OPT_COPY, M_YES },
/*
** .pp
pbody->next = msg->content; /* don't kill command-line attachments */
msg->content = pbody;
- msg->content->type = TYPETEXT;
- msg->content->subtype = safe_strdup ("plain");
+ mutt_parse_content_type (ContentType, msg->content);
msg->content->unlink = 1;
msg->content->use_disp = 0;
msg->content->disposition = DISPINLINE;
- if (option (OPTTEXTFLOWED))
+ if (option (OPTTEXTFLOWED) && msg->content->type == TYPETEXT && !ascii_strcasecmp (msg->content->subtype, "plain"))
mutt_set_parameter ("format", "flowed", &msg->content->parameter);
if (!tempfile)