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 {
/* Convert to UTF-8 */
ib = bufi;
ob = bufu, obl = sizeof (bufu);
- n = mutt_iconv(cd1, ibl ? &ib : 0, &ibl, &ob, &obl);
+ n = my_iconv(cd1, ibl ? &ib : 0, &ibl, &ob, &obl);
if (n == -1 && ((errno != EINVAL && errno != E2BIG) || ib == bufi)) {
ret = -1;
break;
if (cd[i] != MUTT_ICONV_ERROR && score[i] != -1) {
ub = bufu, ubl = ubl1;
ob = bufo, obl = sizeof (bufo);
- n = mutt_iconv(cd[i], (ibl || ubl) ? &ub : 0, &ubl, &ob, &obl);
+ n = my_iconv(cd[i], (ibl || ubl) ? &ub : 0, &ubl, &ob, &obl);
if (n == -1) {
score[i] = -1;
}
for (i = 0; i < ncodes; i++)
if (cd[i] != MUTT_ICONV_ERROR)
- iconv_close(cd[i]);
+ iconv_close (cd[i]);
- iconv_close(cd1);
+ iconv_close (cd1);
p_delete(&cd);
p_delete(&infos);
p_delete(&score);
}
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)
}
}
- 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()