<?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>question Re: Handling multiple email accounts in NiFi using ConsumePOP3 (equivalent to looping in Java) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413810#M254242</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561"&gt;@AlokKumar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You are correct that the ConsumePOP3 processor does not support an inbound connection to it.&amp;nbsp; &amp;nbsp; Even if it did, the username and password fields do not support NiFi Expression language allowing you to pass either of those values in from the source FlowFile.&amp;nbsp; &amp;nbsp;There aren't any other native processors that can support this dynamic credentials use case.&amp;nbsp; &amp;nbsp;You would need to create a custom script that could be called by scripting processors or create your own custom processor.&amp;nbsp;&lt;/P&gt;&lt;UL class="uk-list uk-list-collapse uk-text-light uk-text-truncate component-items"&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.script.ExecuteScript/" target="_blank"&gt;ExecuteScript&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.standard.ExecuteProcess/" target="_blank"&gt;ExecuteProcess&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.groovyx.ExecuteGroovyScript/" target="_blank"&gt;ExecuteGroovyScript&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The reason processors like ConsumePOP3 do not support inbound connections is because they are designed to execute continuously on a run schedule and produce an individual FlowFile for each new email message consumed.&amp;nbsp; &amp;nbsp;So supporting an inbound connection raises the question... What do you do with the source FlowFile that you would use as the trigger?&amp;nbsp; Then you also have the challenge of continuously consumption.&amp;nbsp; You would need to keep producing an input FlowFile for each email account to make sure you keep consuming from each source account.&amp;nbsp; &amp;nbsp;Plus this processor does not write any attributes to outbound FlowFile to distinguish which account message came from.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2026 20:34:02 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2026-04-06T20:34:02Z</dc:date>
    <item>
      <title>Handling multiple email accounts in NiFi using ConsumePOP3 (equivalent to looping in Java)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413801#M254237</link>
      <description>&lt;P&gt;I am working with &lt;SPAN class="hover:entity-accent entity-underline inline cursor-pointer align-baseline"&gt;&lt;SPAN class="whitespace-normal"&gt;Apache NiFi&lt;/SPAN&gt;&lt;/SPAN&gt; and trying to replicate a pattern that we had done in existing system.&lt;/P&gt;&lt;P&gt;In existing system, we have multiple (around 10) email accounts, and we iterate over them using a loop, connecting to each mailbox, reading emails, and processing them.&lt;/P&gt;&lt;P&gt;In NiFi, I have configured a ConsumePOP3 processor and it works fine for a single email account. However, I need to handle multiple email accounts in a scalable and maintainable way. We are not able to connect any processor or something before&amp;nbsp;ConsumePOP3.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 08:36:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413801#M254237</guid>
      <dc:creator>AlokKumar</dc:creator>
      <dc:date>2026-04-06T08:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple email accounts in NiFi using ConsumePOP3 (equivalent to looping in Java)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413807#M254240</link>
      <description>&lt;P data-path-to-node="6,0"&gt;Hi &lt;A class="ng-star-inserted" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561" rel="noopener" target="_blank"&gt;AlokKumar&lt;/A&gt;!&amp;nbsp;&lt;/P&gt;
&lt;P data-path-to-node="6,1"&gt;While I'm not a technical expert on the product, I noticed you're looking to scale your flow for multiple accounts. While you wait for a specialist to reply, you might find some useful starting points in this &lt;A class="ng-star-inserted" href="https://community.cloudera.com/t5/Community-Articles/NiFi-Error-Handling-Design-Pattern/ta-p/249077" rel="noopener" target="_blank"&gt;NiFi Design Pattern article&lt;/A&gt; or this discussion on &lt;A class="ng-star-inserted" href="https://community.cloudera.com/t5/Support-Questions/Can-NiFi-handle-multiple-users-hitting-a-request/td-p/405288/jump-to/first-unread-message" rel="noopener" target="_blank"&gt;handling multiple requests&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P data-path-to-node="6,1"&gt;Hope this helps point you in the right direction!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 12:23:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413807#M254240</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2026-04-06T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple email accounts in NiFi using ConsumePOP3 (equivalent to looping in Java)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413810#M254242</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561"&gt;@AlokKumar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You are correct that the ConsumePOP3 processor does not support an inbound connection to it.&amp;nbsp; &amp;nbsp; Even if it did, the username and password fields do not support NiFi Expression language allowing you to pass either of those values in from the source FlowFile.&amp;nbsp; &amp;nbsp;There aren't any other native processors that can support this dynamic credentials use case.&amp;nbsp; &amp;nbsp;You would need to create a custom script that could be called by scripting processors or create your own custom processor.&amp;nbsp;&lt;/P&gt;&lt;UL class="uk-list uk-list-collapse uk-text-light uk-text-truncate component-items"&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.script.ExecuteScript/" target="_blank"&gt;ExecuteScript&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.standard.ExecuteProcess/" target="_blank"&gt;ExecuteProcess&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.groovyx.ExecuteGroovyScript/" target="_blank"&gt;ExecuteGroovyScript&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The reason processors like ConsumePOP3 do not support inbound connections is because they are designed to execute continuously on a run schedule and produce an individual FlowFile for each new email message consumed.&amp;nbsp; &amp;nbsp;So supporting an inbound connection raises the question... What do you do with the source FlowFile that you would use as the trigger?&amp;nbsp; Then you also have the challenge of continuously consumption.&amp;nbsp; You would need to keep producing an input FlowFile for each email account to make sure you keep consuming from each source account.&amp;nbsp; &amp;nbsp;Plus this processor does not write any attributes to outbound FlowFile to distinguish which account message came from.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 20:34:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Handling-multiple-email-accounts-in-NiFi-using-ConsumePOP3/m-p/413810#M254242</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-06T20:34:02Z</dc:date>
    </item>
  </channel>
</rss>

