Change the path Email Reader writes attachments to?

Support/help with CloverETL (4.9) and CloverDX (5.0 or newer) implementation problems

pintail
Posts: 33
Joined: Wed Aug 27, 2014 6:58 pm

Change the path Email Reader writes attachments to?

Postby pintail » Fri Sep 11, 2015 4:31 pm

Hi - is there anyway to change the path that the email reader writes attachments to? Also - it looks like clover assigns a clover generated name for the attachment (email address_randomnumber.filetype) to replace the file name? Is there a way to force it to keep the file name and an option to change the path it writes the attachments to?

Path currently writing to: <install directory>\EID\Tomcat\apache-tomcat-6.0.37\temp\clover_temp\<file name of attachment>
File name: _<random string>@<correct email address>_<random number>.jpg<correct filetype>


I can do all of this with additional graphs to move the files to a new directory and potentially update the name - there is a timestamp in the filenames that I would like to keep if possible, but we can add that field into the attached data if needed to make it less relevant to get it in the email attachment name. Just hoping that there are some settings/configuration options in the component that I'm missing to make it easier.

thanks!

imriskal
Posts: 397
Joined: Wed Aug 15, 2012 8:18 am

Re: Change the path Email Reader writes attachments to?

Postby imriskal » Fri Sep 18, 2015 12:17 pm

Hi pintail,

See the attached graph. You can not choose the filename and location directly in EmailReader but you can send attachments via the second output port to UniversalDataReader and save them there.

I hope this helps.
Attachments
readMyEmail.grf
(4.18 KiB) Downloaded 161 times
---
Lubos Imriska
CloverCARE Support
CloverDX

Visit us online at http://www.cloverdx.com

pintail
Posts: 33
Joined: Wed Aug 27, 2014 6:58 pm

Re: Change the path Email Reader writes attachments to?

Postby pintail » Fri Sep 18, 2015 8:20 pm

Thanks! I actually was just logging on to post my own reply. I noticed that ability in another post and ended up doing it that way - reading the attachmentraw:descrete into a universal data reader and then writing it out. Works great! Should have done some more research first.

One quick question though - what does the ":discrete" syntax mean? I couldn't figure that out (but it does work nicely).

imriskal
Posts: 397
Joined: Wed Aug 15, 2012 8:18 am

Re: Change the path Email Reader writes attachments to?

Postby imriskal » Mon Sep 21, 2015 8:09 am

In case of reader components, discrete is a type of processing of value from the input field, see Input Port Reading. It basically means that value from the input field is directly parsed and read as if it was read from a file.

In case of writers, the meaning is similar - Output Port Writing.
---
Lubos Imriska
CloverCARE Support
CloverDX

Visit us online at http://www.cloverdx.com