</sect1>
+<sect1 id="echo">
+<title>Echoing Text</title>
+
+<para>
+Usage:
+</para>
+
+<cmdsynopsis>
+<command>echo</command>
+<arg choice="plain">
+<replaceable class="parameter">message</replaceable>
+</arg>
+</cmdsynopsis>
+
+<para>
+You can print messages to the message window using the "echo" command.
+This might be useful after a macro finishes executing. After printing
+the message, echo will pause for the number of seconds specified by
+<link linkend="sleep-time">$sleep_time</link>.
+</para>
+
+<screen>
+echo "Sourcing muttrc file"
+
+unset confirmappend
+macro index ,a "<save-message>=archive<enter><enter-command>echo 'Saved to archive'<enter>"
+</screen>
+
+</sect1>
+
<sect1 id="misc-topics">
<title>Miscellany</title>
</cmdsynopsis>
</listitem>
+<listitem>
+<cmdsynopsis>
+<command><link linkend="echo">echo</link></command>
+<arg choice="plain">
+<replaceable class="parameter">message</replaceable>
+</arg>
+</cmdsynopsis>
+</listitem>
+
<listitem>
<cmdsynopsis>
<command><link linkend="exec">exec</link></command>
return 0;
}
+static int parse_echo (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
+{
+ if (!MoreArgs (s))
+ {
+ strfcpy (err->data, _("not enough arguments"), err->dsize);
+ return -1;
+ }
+ mutt_extract_token (buf, s, 0);
+ set_option (OPTFORCEREFRESH);
+ mutt_message ("%s", buf->data);
+ unset_option (OPTFORCEREFRESH);
+ mutt_sleep (0);
+
+ return 0;
+}
+
static void _alternates_clean (void)
{
int i;
static int parse_unlists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_alias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_unalias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
+static int parse_echo (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_ignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_unignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
static int parse_source (BUFFER *, BUFFER *, unsigned long, BUFFER *);
{ "color", mutt_parse_color, 0 },
{ "uncolor", mutt_parse_uncolor, 0 },
#endif
+ { "echo", parse_echo, 0 },
{ "exec", mutt_parse_exec, 0 },
{ "fcc-hook", mutt_parse_hook, MUTT_FCCHOOK },
{ "fcc-save-hook", mutt_parse_hook, MUTT_FCCHOOK | MUTT_SAVEHOOK },