Package: libruby1.8
Version: 1.8.4-5
Severity: important
With an extra space in IMAP CAPABILITY response, imap.rb crashes:
/usr/lib/ruby/1.8/net/imap.rb:3104:in `parse_error': unexpected token
SPACE (Net::IMAP::ResponseParseError)
from /usr/lib/ruby/1.8/net/imap.rb:2917:in `atom'
from /usr/lib/ruby/1.8/net/imap.rb:2714:in `capability_response'
from /usr/lib/ruby/1.8/net/imap.rb:1972:in `response_untagged'
from /usr/lib/ruby/1.8/net/imap.rb:1930:in `response'
from /usr/lib/ruby/1.8/net/imap.rb:1856:in `parse'
from /usr/lib/ruby/1.8/net/imap.rb:996:in `get_response'
from /usr/lib/ruby/1.8/net/imap.rb:925:in `receive_responses'
from /usr/lib/ruby/1.8/net/imap.rb:918:in `initialize'
from /usr/lib/ruby/1.8/net/imap.rb:917:in `initialize'
from /usr/bin/bsfilter:2705:in `do_imap'
from /usr/bin/bsfilter:3340:in `run'
from /usr/bin/bsfilter:3392
The protocol messages were as follows, extra space between NAMESPACE and
IDLE capabilities:
DEBUG[imap]: 24:53.40 > DKKG0 CAPABILITY
DEBUG[imap]: 24:53.42 < * CAPABILITY IMAP4REV1 UIDPLUS NAMESPACE IDLE
NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES
THREAD=ORDEREDSUBJECT QUOTA MULTIAPPEND SASL-IR LOGIN-REFERRALS
AUTH=LOGIN
A quick patch that overcomes the problem:
--- imap.rb~ 2005-02-22 18:58:33.000000000 +0200
+++ imap.rb 2006-09-17 11:59:49.000000000 +0300
@@ -1883,7 +1883,7 @@
T_TEXT = :TEXT
BEG_REGEXP = /\G(?:\
-(?# 1: SPACE )( )|\
+(?# 1: SPACE )( +)|\
(?# 2: NIL )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
(?# 3: NUMBER )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
(?# 4: ATOM )([^\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+]+)|\
-- System Information:
Debian Release: testing/unstable
APT prefers stable
APT policy: (600, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Versions of packages libruby1.8 depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii zlib1g 1:1.2.3-13 compression library - runtime
libruby1.8 recommends no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]