{
FILE *fp; /* pointer to the message data */
char *path; /* path to temp file */
- short magic; /* type of mailbox this message belongs to */
short write; /* nonzero if message is open for writing */
struct {
unsigned read : 1;
}
msg = safe_calloc (1, sizeof (MESSAGE));
- msg->magic = dest->magic;
msg->write = 1;
if (hdr)
if (dest->magic == MUTT_MMDF)
fputs (MMDF_SEP, msg->fp);
- if ((msg->magic == MUTT_MBOX || msg->magic == MUTT_MMDF) &&
+ if ((dest->magic == MUTT_MBOX || dest->magic == MUTT_MMDF) &&
flags & MUTT_ADD_FROM)
{
if (hdr)
}
msg = safe_calloc (1, sizeof (MESSAGE));
- msg->magic = ctx->magic;
ret = ops->open_msg (ctx, msg, msgno);
if (ret)
FREE (&msg);
return -1;
}
- switch (msg->magic)
+ switch (ctx->magic)
{
case MUTT_MMDF:
{
{
int r = 0;
- if ((*msg)->magic == MUTT_MH || (*msg)->magic == MUTT_MAILDIR
- || (*msg)->magic == MUTT_IMAP || (*msg)->magic == MUTT_POP)
+ if (ctx->magic == MUTT_MH || ctx->magic == MUTT_MAILDIR
+ || ctx->magic == MUTT_IMAP || ctx->magic == MUTT_POP)
{
r = safe_fclose (&(*msg)->fp);
}