A new feature of Mail in El Capitan is the ability to swipe across a message using your Mac's trackpad to access some common functions. This is similar to how Mail in iOS works. You can mark a message as Read or Unread, or delete it. You can also change the delete option to archive. This even works for messages not currently selected.