Skip to content

Commit

Permalink
[PDI-14305] Get Mails (POP3/IMAP) Not substituting environment variab…
Browse files Browse the repository at this point in the history
…les for target directories
  • Loading branch information
Andrew Overton committed Sep 3, 2015
1 parent bcba55a commit 1a2388e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions engine/src/org/pentaho/di/job/entries/getpop/JobEntryGetPOP.java
Expand Up @@ -726,6 +726,10 @@ public String getRealPassword() {
public String getAttachmentFolder() {
return attachmentfolder;
}

public String getRealAttachmentFolder() {
return environmentSubstitute( getAttachmentFolder() );
}

public void setAttachmentFolder( String foldername ) {
this.attachmentfolder = foldername;
Expand Down Expand Up @@ -1313,13 +1317,13 @@ String createOutputDirectory( int folderType ) throws KettleException, FileSyste
String folderName = "";
switch ( folderType ) {
case JobEntryGetPOP.FOLDER_OUTPUT:
folderName = getOutputDirectory();
folderName = getRealOutputDirectory();
break;
case JobEntryGetPOP.FOLDER_ATTACHMENTS:
if ( isSaveAttachment() && isDifferentFolderForAttachment() ) {
folderName = getAttachmentFolder();
folderName = getRealAttachmentFolder();
} else {
folderName = getOutputDirectory();
folderName = getRealOutputDirectory();
}
break;
}
Expand Down

0 comments on commit 1a2388e

Please sign in to comment.