I know how to send a reply: :0 * ^Subject: whatever*[ ]* | mailx -s "Your $SUBJ email was received" $FROM < /dev/null But what do I add to this to also keep this email in my normal mailbox?