Options

Process Documents from Mail Store attachements

dimons91dimons91 Member Posts: 3 Contributor I
edited November 2018 in Help

Hello.

I need to read email and download xml attachements to directory.

With "Process Documents from Mail Store" operator I connected successfully to gmail (pop3).

Screenshot_4.png

In operator parameters I select download attachements.

1. What I need choose in attachement MIME-type?:

 

Screenshot_3.png

 

 

 

 

 

2. How I can save attachements to directory? What operators I need to use? Maybe "Loop Collection". What else?

Screenshot_5.png

3. I need to reed mail not from INBOX folder. Bun when I change folder to Screenshot_7.png

I see error message. Can I fix it?


Screenshot_6.png

 

Answers

  • Options
    Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    Connecting to GMAIL is difficult, do a search in the community or knowledge base, I believe it was solved.

     

    i usually skip the Connect to Mail Store operator and do something like the attached process.

     

    Just enter your email address in User and your password in password

     

    <?xml version="1.0" encoding="UTF-8"?><process version="7.3.000">
    <context>
    <input/>
    <output/>
    <macros/>
    </context>
    <operator activated="true" class="process" compatibility="7.3.000" expanded="true" name="Process">
    <process expanded="true">
    <operator activated="true" class="text:read_documents_mail" compatibility="7.2.001" expanded="true" height="68" name="Read Documents (Mail)" width="90" x="45" y="34">
    <parameter key="host" value="imap.gmail.com"/>
    <list key="connection_properties">
    <parameter key="mail.imap.ssl.enable" value="true"/>
    </list>
    <parameter key="protocol" value="imap"/>
    <parameter key="only_unseen" value="false"/>
    <parameter key="mark_seen" value="false"/>
    </operator>
    <operator activated="true" class="text:documents_to_data" compatibility="7.2.001" expanded="true" height="82" name="Documents to Data" width="90" x="179" y="34">
    <parameter key="text_attribute" value="text"/>
    </operator>
    <connect from_op="Read Documents (Mail)" from_port="output" to_op="Documents to Data" to_port="documents 1"/>
    <connect from_op="Documents to Data" from_port="example set" to_port="result 1"/>
    <portSpacing port="source_input 1" spacing="0"/>
    <portSpacing port="sink_result 1" spacing="0"/>
    <portSpacing port="sink_result 2" spacing="0"/>
    </process>
    </operator>
    </process>
Sign In or Register to comment.