if ( !data.usePOP && !Const.isEmpty( data.folder ) ) {
data.mailConn.openFolder( data.folder, false );
} else {
data.mailConn.openFolder( false );
}
<BUG>if ( meta.useBatch() || ( !Const.isEmpty( meta.getFirstMails() )

&& Integer.parseInt( meta.getFirstMails() ) > 0  ) ) {

Integer batchSize = meta.useBatch() ? meta.getBatchSize() : Integer.parseInt( meta.getFirstMails() );
Integer start = meta.useBatch() ? data.start : 1;</BUG>
Integer end = meta.useBatch() ? data.end : batchSize;

if ( !data.usePOP && !Const.isEmpty( data.folder ) ) {
data.mailConn.openFolder( data.folder, false );
} else {
data.mailConn.openFolder( false );
}
if ( meta.useBatch() || ( !Const.isEmpty( environmentSubstitute( meta.getFirstMails() ) )
&& Integer.parseInt( environmentSubstitute( meta.getFirstMails() ) ) > 0  ) ) {
Integer batchSize = meta.useBatch() ? meta.getBatchSize()
: Integer.parseInt( environmentSubstitute( meta.getFirstMails() ) );
Integer start = meta.useBatch() ? data.start : 1;
Integer end = meta.useBatch() ? data.end : batchSize;
