add seqno and attributes to mail event

To move mail inside 'mail' event the event function needs to be passed
seqno or uid.  uid is part of attributes.