Fix to bug #7 (fetching of all attachments) and improvement to previous fix (break the if when event is found).