{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/745","labels_url":"https://api.github.com/repos/cantino/huginn/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/745/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/745/events","html_url":"https://github.com/cantino/huginn/issues/745","id":63582971,"number":745,"title":"IMAPFolderAgent crashes with undefined method `addresses' for #<Mail::UnstructuredField:0x007feaf1cf2090> exception.","user":{"login":"virtadpt","id":639730,"avatar_url":"https://avatars.githubusercontent.com/u/639730?v=3","gravatar_id":"","url":"https://api.github.com/users/virtadpt","html_url":"https://github.com/virtadpt","followers_url":"https://api.github.com/users/virtadpt/followers","following_url":"https://api.github.com/users/virtadpt/following{/other_user}","gists_url":"https://api.github.com/users/virtadpt/gists{/gist_id}","starred_url":"https://api.github.com/users/virtadpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtadpt/subscriptions","organizations_url":"https://api.github.com/users/virtadpt/orgs","repos_url":"https://api.github.com/users/virtadpt/repos","events_url":"https://api.github.com/users/virtadpt/events{/privacy}","received_events_url":"https://api.github.com/users/virtadpt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cantino/huginn/labels/issue","name":"issue","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"knu","id":10236,"avatar_url":"https://avatars.githubusercontent.com/u/10236?v=3","gravatar_id":"","url":"https://api.github.com/users/knu","html_url":"https://github.com/knu","followers_url":"https://api.github.com/users/knu/followers","following_url":"https://api.github.com/users/knu/following{/other_user}","gists_url":"https://api.github.com/users/knu/gists{/gist_id}","starred_url":"https://api.github.com/users/knu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knu/subscriptions","organizations_url":"https://api.github.com/users/knu/orgs","repos_url":"https://api.github.com/users/knu/repos","events_url":"https://api.github.com/users/knu/events{/privacy}","received_events_url":"https://api.github.com/users/knu/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-03-22T22:26:42Z","updated_at":"2015-06-15T20:43:01Z","closed_at":null,"body":"For reasons not fully clear, the IMAPFolderAgent crashes from time to time with an undefined method `addresses' for #<Mail::UnstructuredField:0x007feaf1cf2090> exception.  Here's a stack trace:\r\n```\r\nundefined method `addresses' for #<Mail::UnstructuredField:0x007feaf1cf2090>\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/mail-2.6.3/lib/mail/field.rb:189:in `method_missing'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:266:in `block (2 levels) in check'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:238:in `each'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:238:in `all?'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:238:in `block in check'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:384:in `block (3 levels) in each_unread_mail'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:383:in `each'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:383:in `block (2 levels) in each_unread_mail'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:336:in `each'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:336:in `block in each_unread_mail'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:442:in `open'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:325:in `each_unread_mail'\r\n/home/drwho/huginn/app/models/agents/imap_folder_agent.rb:232:in `check'\r\n/home/drwho/huginn/app/models/agent.rb:425:in `async_check'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/performable_method.rb:26:in `perform'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/backend/base.rb:105:in `block in invoke_job'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `execute'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/backend/base.rb:102:in `invoke_job'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:207:in `block (2 levels) in run'\r\n/home/drwho/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:82:in `block in timeout'\r\n/home/drwho/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `catch'\r\n/home/drwho/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `timeout'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:207:in `block in run'\r\n/home/drwho/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:206:in `run'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:274:in `block in reserve_and_run_one_job'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `execute'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:274:in `reserve_and_run_one_job'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:190:in `block in work_off'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:189:in `times'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:189:in `work_off'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:154:in `block (4 levels) in start'\r\n/home/drwho/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:153:in `block (3 levels) in start'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `execute'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:152:in `block (2 levels) in start'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:151:in `loop'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:151:in `block in start'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/plugins/clear_locks.rb:7:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in <class:ClearLocks>'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:78:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:78:in `block (2 levels) in add'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:78:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:78:in `block in add'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `call'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:65:in `execute'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'\r\n/home/drwho/.rvm/gems/ruby-2.1.0/gems/delayed_job-4.0.2/lib/delayed/worker.rb:150:in `start'\r\nbin/threaded.rb:46:in `block (2 levels) in <top (required)>'\r\nbin/threaded.rb:16:in `safely'\r\nbin/threaded.rb:43:in `block in <top (required)>'\r\n```"},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/112204815","html_url":"https://github.com/cantino/huginn/issues/745#issuecomment-112204815","issue_url":"https://api.github.com/repos/cantino/huginn/issues/745","id":112204815,"user":{"login":"virtadpt","id":639730,"avatar_url":"https://avatars.githubusercontent.com/u/639730?v=3","gravatar_id":"","url":"https://api.github.com/users/virtadpt","html_url":"https://github.com/virtadpt","followers_url":"https://api.github.com/users/virtadpt/followers","following_url":"https://api.github.com/users/virtadpt/following{/other_user}","gists_url":"https://api.github.com/users/virtadpt/gists{/gist_id}","starred_url":"https://api.github.com/users/virtadpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtadpt/subscriptions","organizations_url":"https://api.github.com/users/virtadpt/orgs","repos_url":"https://api.github.com/users/virtadpt/repos","events_url":"https://api.github.com/users/virtadpt/events{/privacy}","received_events_url":"https://api.github.com/users/virtadpt/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T20:43:01Z","updated_at":"2015-06-15T20:43:01Z","body":"I don't know.  Let me upgrade Huginn to the latest commit and I'll get back to you."}}