Remove buffer prefix now that all callers are converted.
else
mutt_buffer_strcpy (newfile, a->filename);
- if (mutt_buffer_rfc1524_expand_command (a, mutt_b2s (newfile), type,
- command))
+ if (mutt_rfc1524_expand_command (a, mutt_b2s (newfile), type, command))
{
/* 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,
- command))
+ if (mutt_rfc1524_expand_command (a, mutt_b2s (newfile), type, command))
{
/* For now, editing requires a file, no piping */
mutt_error _("Mailcap Edit entry requires %%s");
goto return_error;
}
- use_pipe = mutt_buffer_rfc1524_expand_command (a, mutt_b2s (tempfile), type,
- command);
+ use_pipe = mutt_rfc1524_expand_command (a, mutt_b2s (tempfile), type,
+ command);
use_pager = entry->copiousoutput;
}
mutt_save_attachment (fp, a, mutt_b2s (newfile), 0, NULL);
mutt_buffer_strcpy (command, entry->printcommand);
- piped = mutt_buffer_rfc1524_expand_command (a, mutt_b2s (newfile), type, command);
+ piped = mutt_rfc1524_expand_command (a, mutt_b2s (newfile), type, command);
mutt_endwin (NULL);
mutt_buffer_strcpy (command, entry->command);
/* rfc1524_expand_command returns 0 if the file is required */
- piped = mutt_buffer_rfc1524_expand_command (a, mutt_b2s (tempfile), type, command);
+ piped = mutt_rfc1524_expand_command (a, mutt_b2s (tempfile), type, command);
if (s->flags & MUTT_DISPLAY)
{
* In addition, this function returns a 0 if the command works on a file,
* and 1 if the command works on a pipe.
*/
-int mutt_buffer_rfc1524_expand_command (BODY *a, const char *filename, const char *_type,
- BUFFER *command)
+int mutt_rfc1524_expand_command (BODY *a, const char *filename, const char *_type,
+ BUFFER *command)
{
const char *cptr;
int needspipe = TRUE;
{
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 */
rfc1524_entry *rfc1524_new_entry (void);
void rfc1524_free_entry (rfc1524_entry **);
-int rfc1524_expand_command (BODY *, const char *, const char *, char *, int);
+int mutt_rfc1524_expand_command (BODY *, const char *, const char *, BUFFER *);
int mutt_rfc1524_expand_filename (const char *, const char *, BUFFER *);
int rfc1524_mailcap_lookup (BODY *, char *, rfc1524_entry *, int);
int mutt_rename_file (const char *, const char *);
-
-/* Temporary BUFFER transition functions */
-int mutt_buffer_rfc1524_expand_command (BODY *, const char *, const char *, BUFFER *);
-
#endif /* _RFC1524_H */