| skipped 737 lines |
738 | 738 | | { |
739 | 739 | | /* if a mailbox is currently open, look to see if the original message |
740 | 740 | | * the user attempted to reply to is in this mailbox */ |
741 | | - | p = mutt_str_skip_email_wsp(np->data + plen); |
742 | | - | if (!m_cur->id_hash) |
743 | | - | m_cur->id_hash = mutt_make_id_hash(m_cur); |
744 | | - | *cur = mutt_hash_find(m_cur->id_hash, p); |
| 741 | + | if (m_cur) |
| 742 | + | { |
| 743 | + | p = mutt_str_skip_email_wsp(np->data + plen); |
| 744 | + | if (!m_cur->id_hash) |
| 745 | + | m_cur->id_hash = mutt_make_id_hash(m_cur); |
| 746 | + | *cur = mutt_hash_find(m_cur->id_hash, p); |
745 | 747 | | |
746 | | - | if (*cur) |
747 | | - | rc |= SEND_REPLY; |
| 748 | + | if (*cur) |
| 749 | + | rc |= SEND_REPLY; |
| 750 | + | } |
748 | 751 | | } |
749 | 752 | | else if ((plen = mutt_istr_startswith(np->data, "X-Mutt-Fcc:"))) |
750 | 753 | | { |
| skipped 66 lines |