{"action":"created","issue":{"url":"https://api.github.com/repos/rlue/little_red_flag/issues/3","repository_url":"https://api.github.com/repos/rlue/little_red_flag","labels_url":"https://api.github.com/repos/rlue/little_red_flag/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rlue/little_red_flag/issues/3/comments","events_url":"https://api.github.com/repos/rlue/little_red_flag/issues/3/events","html_url":"https://github.com/rlue/little_red_flag/issues/3","id":229235900,"number":3,"title":"undefined method `downcase' for nil:NilClass (NoMethodError)","user":{"login":"hsanson","id":900716,"avatar_url":"https://avatars1.githubusercontent.com/u/900716?v=3","gravatar_id":"","url":"https://api.github.com/users/hsanson","html_url":"https://github.com/hsanson","followers_url":"https://api.github.com/users/hsanson/followers","following_url":"https://api.github.com/users/hsanson/following{/other_user}","gists_url":"https://api.github.com/users/hsanson/gists{/gist_id}","starred_url":"https://api.github.com/users/hsanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsanson/subscriptions","organizations_url":"https://api.github.com/users/hsanson/orgs","repos_url":"https://api.github.com/users/hsanson/repos","events_url":"https://api.github.com/users/hsanson/events{/privacy}","received_events_url":"https://api.github.com/users/hsanson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-17T04:41:25Z","updated_at":"2017-05-17T05:29:27Z","closed_at":null,"body":"Running this tool I get this error:\r\n\r\n```\r\n[~]> littleredflag -a\r\n/var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:21:in `connect': undefined method `downcase' for nil:NilClass (NoMethodError)\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:211:in `block in populate_channel_inboxes'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:210:in `each'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:210:in `populate_channel_inboxes'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:144:in `postprocess'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync/config.rb:76:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync.rb:10:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent/mbsync.rb:10:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/bin/littleredflag:37:in `block in <top (required)>'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/bin/littleredflag:37:in `map!'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.2/bin/littleredflag:37:in `<top (required)>'\r\n        from /usr/local/bin/littleredflag:23:in `load'\r\n        from /usr/local/bin/littleredflag:23:in `<main>'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rlue/little_red_flag/issues/comments/301989628","html_url":"https://github.com/rlue/little_red_flag/issues/3#issuecomment-301989628","issue_url":"https://api.github.com/repos/rlue/little_red_flag/issues/3","id":301989628,"user":{"login":"hsanson","id":900716,"avatar_url":"https://avatars1.githubusercontent.com/u/900716?v=3","gravatar_id":"","url":"https://api.github.com/users/hsanson","html_url":"https://github.com/hsanson","followers_url":"https://api.github.com/users/hsanson/followers","following_url":"https://api.github.com/users/hsanson/following{/other_user}","gists_url":"https://api.github.com/users/hsanson/gists{/gist_id}","starred_url":"https://api.github.com/users/hsanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsanson/subscriptions","organizations_url":"https://api.github.com/users/hsanson/orgs","repos_url":"https://api.github.com/users/hsanson/repos","events_url":"https://api.github.com/users/hsanson/events{/privacy}","received_events_url":"https://api.github.com/users/hsanson/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T05:29:27Z","updated_at":"2017-05-17T05:29:27Z","body":"Unfortunately not solved with 0.1.3:\r\n\r\n```\r\nlittleredflag                                                                                   \r\n/var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:21:in `connect': undefinedmethod `downcase' for nil:NilClass (NoMethodError)\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:211:in `blockin populate_channel_inboxes'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:210:in `each'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:210:in `populate_channel_inboxes'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:144:in `postprocess'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:76:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync.rb:10:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync.rb:10:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `block in <top (required)>'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `map!'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `<top (required)>'\r\n        from /usr/local/bin/littleredflag:23:in `load'\r\n        from /usr/local/bin/littleredflag:23:in `<main>'\r\n```\r\n\r\nLooking at the trace the problem seems to be that `ssltype` is nil:\r\n\r\n```\r\n21: imap = Net::IMAP.new(host, port: port, ssl: (ssltype.downcase == 'imaps'))\r\n```\r\n\r\nAnd I do have an IMAP account that does not use IMAPS:\r\n\r\n```\r\nIMAPAccount xxxx@email.net\r\nHost mail.email.net\r\nUser xxxx@email.net\r\nPass secretPassWord\r\nUseIMAPS no\r\nRequireSSL no\r\n```\r\n\r\nI am trying to create the smallest config file that reproduces the issue but when I delete other parts of the config I get a different error:\r\n\r\n```\r\n/var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:187:in `block in link_group_channels': undefined method `map!' for \"xxxxx-email-inbox\":String (NoMethodError)\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:186:in `each'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:186:in `link_group_channels'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:142:in `postprocess'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync/config.rb:76:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync.rb:10:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent/mbsync.rb:10:in `initialize'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/lib/little_red_flag/mail_agent.rb:12:in `new'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `block in <top (required)>'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `map!'\r\n        from /var/lib/gems/2.3.0/gems/little_red_flag-0.1.3/bin/littleredflag:37:in `<top (required)>'\r\n        from /usr/local/bin/littleredflag:23:in `load'\r\n        from /usr/local/bin/littleredflag:23:in `<main>'\r\n```\r\n\r\nBTW: Would be nice to have a flag option to use a different .mbsyncrc file so I do not have to modify my main configuration to debug this. "}}
{"actor":{"display_login":"hsanson"}}