I've got mutt connected to Gmail imap
so far, I've got this:
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Archive message"
But I can't figure out how it makes sure the message has been marked "read" before putting it away. The flow is like so: I'm in index view, then hit enter to read the message. I don't 'commit' that I've read this message with "$", but instead hit 'y' to archive. I would like to be able to combine the '$' mark as read or while doing the archive (shown above)