<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IMAP support in tPOP : move to folders after processing in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254339#M37380</link>
    <description>&lt;P&gt;Hi folks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to build processing of incomming email and need to move processed imails from [Inbox] email folder to another email folder say [Processed]. Not local folders but email folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I can see at the moment tPOP supports IMAP only for (marking for) deleting of emails which were retrieved from the server and saved into a local directory. So there is no visible way to handle moving processed imals between IMAP folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile IMAP specification allows such actons and mayny libraries (Python etc) allow such manipulations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how it could be achieved? How most of TOS developers handle such tasks?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea would be much appreciated!&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:37:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:37:08Z</dc:date>
    <item>
      <title>IMAP support in tPOP : move to folders after processing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254339#M37380</link>
      <description>&lt;P&gt;Hi folks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to build processing of incomming email and need to move processed imails from [Inbox] email folder to another email folder say [Processed]. Not local folders but email folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I can see at the moment tPOP supports IMAP only for (marking for) deleting of emails which were retrieved from the server and saved into a local directory. So there is no visible way to handle moving processed imals between IMAP folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile IMAP specification allows such actons and mayny libraries (Python etc) allow such manipulations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how it could be achieved? How most of TOS developers handle such tasks?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea would be much appreciated!&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254339#M37380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: IMAP support in tPOP : move to folders after processing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254340#M37381</link>
      <description>there is no way on tos to easily do it. You may use tjavaFlex to build your own component using java code.</description>
      <pubDate>Fri, 20 Sep 2019 11:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254340#M37381</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-20T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: IMAP support in tPOP : move to folders after processing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254341#M37382</link>
      <description>&lt;P&gt;I already had to go Java way but building a complitelly new component would be overkill for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for now I am surviving with the following tJava code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.out.println(message_tPOP_1.getClass().getName());

javax.mail.Message[] messages = new javax.mail.Message[]{ message_tPOP_1 };
javax.mail.Folder inbox = folder_tPOP_1;

javax.mail.Folder processed = store_tPOP_1.getFolder("processed");
inbox.copyMessages(messages, processed);&lt;/PRE&gt;
&lt;P&gt;First println displays "&lt;A href="https://javaee.github.io/javamail/docs/api/com/sun/mail/imap/IMAPFolder.html" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;com.sun.mail.imap.IMAPFolder&lt;/A&gt;&amp;nbsp;" which brings a hope of using&amp;nbsp;&lt;A href="https://javaee.github.io/javamail/docs/api/com/sun/mail/imap/IMAPFolder.html#moveMessages-javax.mail.Message:A-javax.mail.Folder-" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;.moveMessages(Message[] msgs, Folder folder)&lt;/A&gt;&amp;nbsp;however the hope is false because of very strange situation when Talend throws compilation errors about unknown method:&lt;/P&gt;
&lt;PRE&gt;The method moveMessages(Message[], Folder) is undefined for the type Folder&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2019 10:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254341#M37382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-23T10:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMAP support in tPOP : move to folders after processing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254342#M37383</link>
      <description>check JavaMail version…</description>
      <pubDate>Mon, 23 Sep 2019 13:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254342#M37383</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-23T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: IMAP support in tPOP : move to folders after processing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254343#M37384</link>
      <description>&lt;P&gt;I have the same problem.&lt;/P&gt;
&lt;P&gt;I have also to move mails from one folder to other.&lt;/P&gt;
&lt;P&gt;Do you have already a solution for this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IMAP-support-in-tPOP-move-to-folders-after-processing/m-p/2254343#M37384</guid>
      <dc:creator>AndreK</dc:creator>
      <dc:date>2020-03-02T16:15:28Z</dc:date>
    </item>
  </channel>
</rss>

