<?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 Re: getimap.py not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55247#M179775</link>
    <description>&lt;P&gt;Problem solved.&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2012 11:17:48 GMT</pubDate>
    <dc:creator>bckq</dc:creator>
    <dc:date>2012-05-24T11:17:48Z</dc:date>
    <item>
      <title>getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55246#M179774</link>
      <description>&lt;P&gt;I have problem with running getimap.py. I have configured imap.conf properly. getimap.py see that there are 191 mails in the mailbox, but I get those errors.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EndIMAPMessage
DEBUG:root:about to get all mail up to counter :191
DEBUG:root:about so imap search with : (UNDELETED SMALLER 204800 1:201)
DEBUG:root:returned from search with 191ids
DEBUG:root:id return from search : ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142', '143', '144', '145', '146', '147', '148', '149', '150', '151', '152', '153', '154', '155', '156', '157', '158', '159', '160', '161', '162', '163', '164', '165', '166', '167', '168', '169', '170', '171', '172', '173', '174', '175', '176', '177', '178', '179', '180', '181', '182', '183', '184', '185', '186', '187', '188', '189', '190', '191']
DEBUG:root:1. Failed to get and print message iwth UID 1
DEBUG:root:write() takes exactly 1 argument (2 given)
Traceback (most recent call last):
  File "getimap.py", line 651, in fetchMessage
    cstr.write("ContentType :   ", part.get_content_type() + '\n')
TypeError: write() takes exactly 1 argument (2 given)
None
DEBUG:root:2. Failed to get and print message iwth UID 1
DEBUG:root:1. Failed to get and print message iwth UID 2
DEBUG:root:write() takes exactly 1 argument (2 given)
Traceback (most recent call last):
  File "getimap.py", line 651, in fetchMessage
    cstr.write("ContentType :   ", part.get_content_type() + '\n')
TypeError: write() takes exactly 1 argument (2 given)
None
DEBUG:root:2. Failed to get and print message iwth UID 2
DEBUG:root:1. Failed to get and print message iwth UID 3
DEBUG:root:write() takes exactly 1 argument (2 given)
Traceback (most recent call last):
  File "getimap.py", line 651, in fetchMessage
    cstr.write("ContentType :   ", part.get_content_type() + '\n')
TypeError: write() takes exactly 1 argument (2 given)
None
DEBUG:root:2. Failed to get and print message iwth UID 3
DEBUG:root:1. Failed to get and print message iwth UID 4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 May 2012 11:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55246#M179774</guid>
      <dc:creator>bckq</dc:creator>
      <dc:date>2012-05-18T11:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55247#M179775</link>
      <description>&lt;P&gt;Problem solved.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2012 11:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55247#M179775</guid>
      <dc:creator>bckq</dc:creator>
      <dc:date>2012-05-24T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55248#M179776</link>
      <description>&lt;P&gt;What was the answer? I have the same problem&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 15:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55248#M179776</guid>
      <dc:creator>telrock</dc:creator>
      <dc:date>2012-07-04T15:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55249#M179777</link>
      <description>&lt;P&gt;line 651 of /opt/splunk/etc/apps/imap/bin/getimap.py&lt;BR /&gt;
change &lt;BR /&gt;
cstr.write("ContentType :       ", part.get_content_type() + '\n')&lt;BR /&gt;
into&lt;BR /&gt;
cstr.write("ContentType :       "+ part.get_content_type() + '\n')&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55249#M179777</guid>
      <dc:creator>telrock</dc:creator>
      <dc:date>2020-09-28T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55250#M179778</link>
      <description>&lt;P&gt;I have added some lines to the /opt/splunk/etc/apps/imap/local/imap.conf file like below, because it looked like something is missing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[IMAP Configuration]
debug = False
deleteWhenDone = True
disabled = 0
fullHeaders = False
includeBody = True
noCache = False
useSSL = True
server = PASTE_HERE
user = PASTE_HERE
password = PASTE_HERE
port = 993
splunkuser = PASTE_HERE
splunkpassword = PASTE_HERE
folders = Inbox
splunkHostPath = &lt;A href="https://localhost:8089" target="test_blank"&gt;https://localhost:8089&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2012 17:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55250#M179778</guid>
      <dc:creator>bckq</dc:creator>
      <dc:date>2012-08-06T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55251#M179779</link>
      <description>&lt;P&gt;Thanks, this solved my problem.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55251#M179779</guid>
      <dc:creator>rmedinas</dc:creator>
      <dc:date>2013-02-26T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: getimap.py not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55252#M179780</link>
      <description>&lt;P&gt;@telrock did you ever solve this problem?  We are having teh same issue and I tried to amend the python script with your suggestion, however, it did not resolve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/getimap-py-not-working/m-p/55252#M179780</guid>
      <dc:creator>mookiie2005</dc:creator>
      <dc:date>2014-02-06T20:27:11Z</dc:date>
    </item>
  </channel>
</rss>

