jodd-mail/src/main/java/jodd/mail/ReceiveMailSession.java
public ReceivedEmail[] receiveEmailAndDelete(final EmailFilter filter) {
		final Flags flags = new Flags();
		flags.add(Flags.Flag.SEEN);
		flags.add(Flags.Flag.DELETED);
		return receiveMessages(filter, flags, null, false, null);
	}
public ReceivedEmail[] receiveEmailAndDelete(final EmailFilter filter) {
		final Flags flags = new Flags();
		flags.add(Flags.Flag.SEEN);
		flags.add(Flags.Flag.DELETED);
		return receiveMessages(filter, flags, null, false, null);
	}
Receives all emails that matches given {@link EmailFilter} and
mark all messages as 'seen' and 'deleted'.

@param filter {@link EmailFilter}
@return array of {@link ReceivedEmail}s.