fprintf (f, "Content-Transfer-Encoding: %s\n", ENCODING (a->encoding));
/* Do NOT add the terminator here!!! */
- return (ferror (f) ? -1 : 0);
+ return ferror (f) ? -1 : 0;
}
int mutt_write_mime_body (BODY * a, FILE * f)
if (!(p = parameter_getval(a->parameter, "boundary"))) {
mutt_error _("No boundary parameter found! [report this error]");
- return (-1);
+ return -1;
}
m_strcpy(boundary, sizeof(boundary), p);
return -1;
}
fprintf (f, "\n--%s--\n", boundary);
- return (ferror (f) ? -1 : 0);
+ return ferror (f) ? -1 : 0;
}
/* This is pretty gross, but it's the best solution for now... */
fgetconv_close (&fc);
m_fclose(&fpin);
- return (ferror (f) ? -1 : 0);
+ return ferror (f) ? -1 : 0;
}
typedef struct {
}
if ((fp = fopen (fname, "r")) == NULL) {
- return (NULL);
+ return NULL;
}
info = p_new(CONTENT, 1);
m_strreplace(&att->xtype, xtype);
}
- return (type);
+ return type;
}
void mutt_message_to_7bit (BODY * a, FILE * fp)
m_fclose(&fp);
- return (body);
+ return body;
}
BODY *mutt_make_file_attach (const char *path)
if (mode == 0 && option (OPTXMAILER) && !has_agent) {
if (mod_core.operating_system) {
- fprintf(fp, "User-Agent: %s (%s)\n", mutt_make_version(),
+ fprintf(fp, "User-Agent: %s (%s)\n", madmutt_version,
mod_core.operating_system);
} else {
- fprintf(fp, "User-Agent: %s\n", mutt_make_version());
+ fprintf(fp, "User-Agent: %s\n", madmutt_version);
}
}
- return (ferror (fp) == 0 ? 0 : -1);
+ return ferror (fp) == 0 ? 0 : -1;
}
static void encode_headers (string_list_t * h)
mutt_unblock_signals_system (1);
- return (st);
+ return st;
}
static const char **
args[(*argslen)++] = addr->mailbox;
}
}
- return (args);
+ return args;
}
static const char **
p_realloc(&args, *argsmax += 5);
}
args[(*argslen)++] = s;
- return (args);
+ return args;
}
int mutt_invoke_mta(address_t *from, address_t *to, address_t *cc,
i = 1;
else
i = -1;
- return (i);
+ return i;
}
/* For postponing (!final) do the necessary encodings only */
set_noconv_flags (hdr->content, 1);
if (mx_open_mailbox (path, M_APPEND | M_QUIET, &f) == NULL) {
- return (-1);
+ return -1;
}
/* We need to add a Content-Length field to avoid problems where a line in
hdr->read = !post; /* make sure to put it in the `cur' directory (maildir) */
if ((msg = mx_open_new_message (&f, hdr, M_ADD_FROM)) == NULL) {
mx_close_mailbox (&f, NULL);
- return (-1);
+ return -1;
}
/* post == 1 => postpone message. Set mode = -1 in mutt_write_rfc822_header()