Pdi 10140 - "retrieve the...first mails" option doesn't work (for POP3 protocol)

What was done:
1) added implementation of the feature
2) added UI changes
3) added unit test