if ((msg = mx_open_new_message (dest, hdr, (src->magic == M_MBOX || src->magic == M_MMDF) ? 0 : M_ADD_FROM)) == NULL)
fseek(fpin, hdr->offset, 0); if (fgets (buf, sizeof (buf), fpin) == NULL) return -1;  if ((msg = mx_open_new_message (dest, hdr, is_from (buf, NULL, 0, NULL) ? 0 : M_ADD_FROM)) == NULL)
_mutt_append_message (CONTEXT *dest, FILE *fpin, CONTEXT *src, HEADER *hdr,		      BODY *body, int flags, int chflags){  MESSAGE *msg;  int r;  if ((msg = mx_open_new_message (dest, hdr, (src->magic == M_MBOX || src->magic == M_MMDF) ? 0 : M_ADD_FROM)) == NULL)    return -1;  if (dest->magic == M_MBOX || dest->magic == M_MMDF)    chflags |= CH_FROM | CH_FORCE_FROM;  chflags |= (dest->magic == M_MAILDIR ? CH_NOSTATUS : CH_UPDATE);  r = _mutt_copy_message (msg->fp, fpin, hdr, body, flags, chflags);  if (mx_commit_message (msg, dest) != 0)    r = -1;  mx_close_message (&msg);  return r;}