<?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 Issue with tPOP in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307967#M79354</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve emails using tPOP with filter subject and from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have special characters in the email subject; Example [AAA] Test1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put the subject directly in the filter while escaping the characters, it works fine. I retrieve the emails correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SprVuAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154294i90D1C49545D3D42B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SprVuAAJ.png" alt="0695b00000SprVuAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i put the same subject in a context variable =&amp;gt; context.MAIL_Subject and i escape it, it does not work =&amp;gt; NO EMAIL FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = context.MAIL_Subject.replace("[","\\\\[").replace("]","\\\\]");&lt;/P&gt;&lt;P&gt;System.out.println(context.MAIL_Subject);   =&amp;gt; \\&lt;/P&gt;&lt;P&gt;[AAA\\] Test1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SprYUAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154824i33CC5A5875F49B75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SprYUAAZ.png" alt="0695b00000SprYUAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone advice please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;RA&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:49:08 GMT</pubDate>
    <dc:creator>RA6</dc:creator>
    <dc:date>2024-11-15T22:49:08Z</dc:date>
    <item>
      <title>Issue with tPOP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307967#M79354</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve emails using tPOP with filter subject and from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have special characters in the email subject; Example [AAA] Test1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put the subject directly in the filter while escaping the characters, it works fine. I retrieve the emails correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SprVuAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154294i90D1C49545D3D42B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SprVuAAJ.png" alt="0695b00000SprVuAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i put the same subject in a context variable =&amp;gt; context.MAIL_Subject and i escape it, it does not work =&amp;gt; NO EMAIL FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = context.MAIL_Subject.replace("[","\\\\[").replace("]","\\\\]");&lt;/P&gt;&lt;P&gt;System.out.println(context.MAIL_Subject);   =&amp;gt; \\&lt;/P&gt;&lt;P&gt;[AAA\\] Test1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SprYUAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154824i33CC5A5875F49B75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SprYUAAZ.png" alt="0695b00000SprYUAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone advice please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;RA&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307967#M79354</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2024-11-15T22:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tPOP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307968#M79355</link>
      <description>&lt;P&gt;Hi @Rohit Aftab​, you apply the replace method to the same variable you try to affect the value.&lt;/P&gt;&lt;P&gt;You can do something like this instead:&lt;/P&gt;&lt;P&gt;String str = context.MAIL_Subject.replace("[","\\\\[").replace("]","\\\\]");&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = str;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 12:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307968#M79355</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-06-17T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tPOP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307969#M79356</link>
      <description>&lt;P&gt;I tried the solution but it is still not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String str = context.MAIL_Subject.replace("[","\\\\[").replace("]","\\\\]");&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = str;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result =&amp;gt; Still no mail found&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 12:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307969#M79356</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2022-06-17T12:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tPOP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307970#M79357</link>
      <description>&lt;P&gt;String str = context.MAIL_Subject.replace("[","\\[").replace("]","\\]");&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = str;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cause as far as i understand :&lt;/P&gt;&lt;P&gt;you have "[AAA]" you want "\\[AAA\\]"&lt;/P&gt;&lt;P&gt;if you print "\\[AAA\\]" you'll see "\[AAA\]"&lt;/P&gt;&lt;P&gt;if you replace [ and ] by \\\\[ and \\\\] and print it you will see "\\[AAA\\]" on the console but the string value will be "\\\\[AAA\\\\]" and not "\\[AAA\\]"&lt;/P&gt;&lt;P&gt;so if you replace [ and ] by \\[ and \\] and print it you will see "\[AAA\]" in the console but the string value will be "\\[AAA\\]" like your direct input wich work.&lt;/P&gt;&lt;P&gt;and i check you can use directly  :&lt;/P&gt;&lt;P&gt;context.MAIL_Subject = context.MAIL_Subject.replace("[","\\[").replace("]","\\]");&lt;/P&gt;&lt;P&gt;it will works too.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307970#M79357</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-06-17T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tPOP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307971#M79358</link>
      <description>&lt;P&gt;Thank you so much. It works!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tPOP/m-p/2307971#M79358</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2022-06-20T08:38:54Z</dc:date>
    </item>
  </channel>
</rss>

