virugge fork merge

https://github.com/virugge/tcexam/commit/10e5d37ff1330ce796408902ddc68d51e9641a4d

Sent the attached pdf only to the first list.
With the change back to the original value $ mode, otherwise it is equal to 3, and is not processing other attachments.