Remove buffer prefix now that all callers are converted.
else
mutt_buffer_strcpy(cmd, entry->command);
- /* rfc1524_expand_command returns 0 if the file is required */
- bool piped = mutt_buffer_rfc1524_expand_command(a, mutt_b2s(tempfile), type, cmd);
+ /* mutt_rfc1524_expand_command returns 0 if the file is required */
+ bool piped = mutt_rfc1524_expand_command(a, mutt_b2s(tempfile), type, cmd);
if (s->flags & MUTT_DISPLAY)
{
else
mutt_buffer_strcpy(newfile, a->filename);
- if (mutt_buffer_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd))
+ if (mutt_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd))
{
/* For now, editing requires a file, no piping */
mutt_error(_("Mailcap compose entry requires %%s"));
else
mutt_buffer_strcpy(newfile, a->filename);
- if (mutt_buffer_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd))
+ if (mutt_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd))
{
/* For now, editing requires a file, no piping */
mutt_error(_("Mailcap Edit entry requires %%s"));
mutt_file_chmod(mutt_b2s(tmpfile), S_IRUSR);
}
- use_pipe = mutt_buffer_rfc1524_expand_command(a, mutt_b2s(tmpfile), type, cmd);
+ use_pipe = mutt_rfc1524_expand_command(a, mutt_b2s(tmpfile), type, cmd);
use_pager = entry->copiousoutput;
}
return 0;
mutt_buffer_strcpy(cmd, entry->printcommand);
- piped = mutt_buffer_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd);
+ piped = mutt_rfc1524_expand_command(a, mutt_b2s(newfile), type, cmd);
mutt_endwin();
bool C_MailcapSanitize; ///< Config: Restrict the possible characters in mailcap expandos
/**
- * mutt_buffer_rfc1524_expand_command - Expand expandos in a command
+ * mutt_rfc1524_expand_command - Expand expandos in a command
* @param a Email Body
* @param filename File containing the email text
* @param type Type, e.g. "text/plain"
* %n is the integer number of sub-parts in the multipart
* %F is "content-type filename" repeated for each sub-part
*/
-int mutt_buffer_rfc1524_expand_command(struct Body *a, const char *filename,
- const char *type, struct Buffer *command)
+int mutt_rfc1524_expand_command(struct Body *a, const char *filename,
+ const char *type, struct Buffer *command)
{
int needspipe = true;
struct Buffer *buf = mutt_buffer_pool_get();
{
struct Buffer *command = mutt_buffer_pool_get();
mutt_buffer_strcpy(command, test_command);
- mutt_buffer_rfc1524_expand_command(a, a->filename, type, command);
+ mutt_rfc1524_expand_command(a, a->filename, type, command);
if (mutt_system(mutt_b2s(command)))
{
/* a non-zero exit code means test failed */
struct Rfc1524MailcapEntry *rfc1524_new_entry(void);
void rfc1524_free_entry(struct Rfc1524MailcapEntry **entry);
-int rfc1524_expand_command(struct Body *a, const char *filename, const char *type, char *command, int clen);
int mutt_rfc1524_expand_filename(const char *nametemplate, const char *oldfile, struct Buffer *newfile);
bool rfc1524_mailcap_lookup(struct Body *a, char *type, struct Rfc1524MailcapEntry *entry, enum MailcapLookup opt);
-int mutt_buffer_rfc1524_expand_command(struct Body *a, const char *filename, const char *type, struct Buffer *command);
+int mutt_rfc1524_expand_command(struct Body *a, const char *filename, const char *type, struct Buffer *command);
#endif /* MUTT_RFC1524_H */