Change the path Email Reader writes attachments to?

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: \EID\Tomcat\apache-tomcat-6.0.37\temp\clover_temp\
File name: _@_.jpg

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!

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.

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).

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.