pentaho/pentaho-kettle — pull request #63 by prakapenka (2013-11-06 13:07:04+00:00)
Title: [PDI-6532] fix + junit tests, [PDI-7241] Spoon ui fix only.

1) engine/src/org/pentaho/di/trans/steps/mailinput/MailInput.java
Extract parse email Message functionality to inner class to have ability to isolate unit-testing of this functionality.

2) for [PDI-6532] fix - to avoid situation when call to 'message.getHeader( name )' throwing exception if there is not such header - we will look for matching headers for given name. If there us no matching headers - we will return empty String. Otherwise - we will iterate through headers concatenating their values. Usually, since we are using only one String for one Header - there will be one Header in collection.

3) [PDI-7241] since POP3 (as FAQ for our java_mail client implementation says) does not support 'unread emails' feature - UI option will be removed. If any customer already have a transformations with this option defined - they just will not see this option on UI.
Also added additional check to select proper menu item.