Forums: users (Thread #7358)

imap使用時にget_tagged_responseのエラーが出る (2005-04-03 23:56 by Anonymous #13562)

imapで使用予定ですが、実行したところ
% bsfilter --imap --imap-fetch-unflagged --insert-flag --insert-probability --imap-folder-spam test/spam test/test
/usr/local/lib/ruby/1.8/net/imap.rb:970:in `get_tagged_response': The specified
authentication package is not supported. (Net::IMAP::NoResponseError)
from /usr/local/lib/ruby/1.8/net/imap.rb:1021:in `send_command'
from /usr/local/lib/ruby/1.8/net/imap.rb:1006:in `synchronize'
from /usr/local/lib/ruby/1.8/net/imap.rb:1006:in `send_command'
from /usr/local/lib/ruby/1.8/net/imap.rb:357:in `authenticate'
from (eval):24:in `auto_authenticate'
from /usr/local/bin/./bsfilter:2451:in `do_imap'
from /usr/local/bin/./bsfilter:3015:in `run'
from /usr/local/bin/./bsfilter:3066

とエラーが出て上手く動いてくれません。
FAQにあったものを実行すると
% ruby /usr/local/lib/ruby/1.8/net/imap.rb --user=hoge --auth=
login hogehoge.jp
password: *****
/usr/local/lib/ruby/1.8/net/imap.rb:970:in `get_tagged_response': The specified
authentication package is not supported. (Net::IMAP::NoResponseError)
from /usr/local/lib/ruby/1.8/net/imap.rb:1021:in `send_command'
from /usr/local/lib/ruby/1.8/net/imap.rb:1006:in `synchronize'
from /usr/local/lib/ruby/1.8/net/imap.rb:1006:in `send_command'
from /usr/local/lib/ruby/1.8/net/imap.rb:357:in `authenticate'
from /usr/local/lib/ruby/1.8/net/imap.rb:3285

となります。

多分、imapのフォルダがディレクトリ状(何層か)になっているのが原因だと思われるのですが、会社のフォルダも含まれているためそれを止めることが出来ません。
何か方法がありましたら教えていただけませんでしょうか。
よろしくお願いします。

#rubyは初心者です。

Reply to #13562×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: imap使用時にget_tagged_responseのエラーが出る (2005-04-04 00:40 by nabeken #13563)

フォルダの階層ではなく、ログイン出来ていないのが問題だと思います。
まずは、状況調査のため、以下の結果を教えて下さい。

1.
ruby /usr/local/lib/ruby/1.8/net/imap.rb --user=hoge --auth=cram-md5 hogehoge.jp

2.
bsfilterコマンド起動時に、以下のオプション(3通り)を追加してみて下さい。

--imap-auth cram-md5 または
--imap-auth login または
--imap-auth loginc
Reply to #13562

Reply to #13563×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login