logstash-plugins / logstash-input-imap

Apache License 2.0
12 stars 37 forks source link

id_set error with expunge set to true #24

Open Cinerar opened 7 years ago

Cinerar commented 7 years ago

Logstasg 5.2.0:

elk_1                    |   Error: undefined local variable or method `id_set' for #<LogStash::Inputs::IMAP:0x78d7792f>
elk_1                    | [2017-02-06T22:43:48,687][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.
elk_1                    |   Plugin: <LogStash::Inputs::IMAP type=>"yandex", host=>"imap.yandex.ru", password=><password>, user=>"******", expunge=>true, check_interval=>60, id=>"57c10adff2c8c3102a3620309bbb4abd70b7f0f3-20", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_e63cd8be-f471-4c71-ae42-5ebc11fc1826", enable_metric=>true, charset=>"UTF-8">, secure=>true, verify_cert=>true, folder=>"INBOX", fetch_count=>50, lowercase_headers=>true, delete=>false, strip_attachments=>false, content_type=>"text/plain">
elk_1                    |   Error: undefined local variable or method `id_set' for #<LogStash::Inputs::IMAP:0x78d7792f>
elk_1                    | [2017-02-06T22:43:50,172][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.
elk_1                    |   Plugin: <LogStash::Inputs::IMAP type=>"yandex", host=>"imap.yandex.ru", password=><password>, user=>"*****", expunge=>true, check_interval=>60, id=>"57c10adff2c8c3102a3620309bbb4abd70b7f0f3-20", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_e63cd8be-f471-4c71-ae42-5ebc11fc1826", enable_metric=>true, charset=>"UTF-8">, secure=>true, verify_cert=>true, folder=>"INBOX", fetch_count=>50, lowercase_headers=>true, delete=>false, strip_attachments=>false, content_type=>"text/plain">
elk_1                    |   Error: undefined local variable or method `id_set' for #<LogStash::Inputs::IMAP:0x78d7792f>
elk_1                    | [2017-02-06T22:43:51,627][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.
elk_1                    |   Plugin: <LogStash::Inputs::IMAP type=>"yandex", host=>"imap.yandex.ru", password=><password>, user=>"*****", expunge=>true, check_interval=>60, id=>"57c10adff2c8c3102a3620309bbb4abd70b7f0f3-20", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_e63cd8be-f471-4c71-ae42-5ebc11fc1826", enable_metric=>true, charset=>"UTF-8">, secure=>true, verify_cert=>true, folder=>"INBOX", fetch_count=>50, lowercase_headers=>true, delete=>false, strip_attachments=>false, content_type=>"text/plain">
elk_1                    |   Error: undefined local variable or method `id_set' for #<LogStash::Inputs::IMAP:0x78d7792f>

replaced user variable with *****

dishmael commented 7 years ago

we are seeing the same issue

kjellgren commented 7 years ago

I found the same problem and started a topic at discuss.elastic.co : Logstash imap input plugin. Want to trash mail. Error: undefined local variable or method `id_set’

xuanhai266 commented 7 years ago

I'm seeing the same issue. I think it's not difficult to fix it (sulution of @kjellgren is good). Please update source code to fix this issue as soon as possible..