Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20665
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <petite.abeille@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.027 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'example:': 0.03; 'subject:bug': 0.03; 'fashion.': 0.07; 'unexpected': 0.07; 'case.': 0.15; 'protocol': 0.15; '__init__': 0.16; 'subject:case': 0.16; 'url:tools': 0.16; 'subject:] ': 0.18; '(most': 0.21; 'cc:no real name:2**0': 0.21; 'traceback': 0.24; 'otherwise,': 0.25; 'cc:2**0': 0.26; 'import': 0.27; 'looks': 0.27; 'cc:addr:gmail.com': 0.28; 'raise': 0.28; "skip:' 10": 0.29; 'print': 0.29; 'x-mailer:apple mail (2.1084)': 0.30; 'message- id:@gmail.com': 0.31; 'file': 0.34; 'last):': 0.34; 'to:addr :python-list': 0.35; 'subject:[': 0.35; 'skip:" 20': 0.35; 'received:74.125.82': 0.36; 'hello,': 0.37; 'charset:us-ascii': 0.37; 'received:google.com': 0.37; 'skip:_ 10': 0.38; 'received:192': 0.38; 'received:74.125': 0.38; 'data': 0.38; 'characters': 0.39; 'received:192.168.1': 0.39; 'url:org': 0.39; 'except': 0.39; 'to:addr:python.org': 0.40; '(1)': 0.40; 'header:Received:6': 0.61; 'header:Message-Id:1': 0.62; 'lower': 0.64; 'tag': 0.64; 'imap': 0.84; 'num': 0.84; 'received:10.180': 0.84; 'editorial': 0.93 |
| Received-SPF | pass (google.com: domain of petite.abeille@gmail.com designates 10.180.94.68 as permitted sender) client-ip=10.180.94.68; |
| Authentication-Results | mr.google.com; spf=pass (google.com: domain of petite.abeille@gmail.com designates 10.180.94.68 as permitted sender) smtp.mail=petite.abeille@gmail.com; dkim=pass header.i=petite.abeille@gmail.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; bh=vFJjdA0OfZMzOg4H14KdfwQ+Z6T0AmQSjETDLbAa8r0=; b=lc774XWvLJJIBZCMQXkaK+b5kHd3UY2Hmh/hXxkqzgIscpOVVdrKrhAzIqX66vL7s6 ecCoHkzrJ+epsrblZl/F/5zV2uVop4jvvtVe2Oq+rde8nXD28vwSgW7AopOZx8hixCv9 2TRi8cv4PiWk7/K+ygZ5mB9VPTQ6r4qHPu4HM= |
| From | Petite Abeille <petite.abeille@gmail.com> |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Subject | [bug] imaplib case sensitive |
| Date | Tue, 21 Feb 2012 10:31:36 +0100 |
| To | python-list@python.org |
| Mime-Version | 1.0 (Apple Message framework v1084) |
| X-Mailer | Apple Mail (2.1084) |
| Cc | ezio.melotti@gmail.com |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.31.1329816701.3037.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1329816701 news.xs4all.nl 6970 [2001:888:2000:d::a6]:53163 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20665 |
Show key headers only | View raw
Hello,
Looks like imaplib is case sensitive, even though the IMAP protocol isn't:
(1) Except as noted otherwise, all alphabetic characters
are case-insensitive. The use of upper or lower case
characters to define token strings is for editorial clarity
only. Implementations MUST accept these strings in a
case-insensitive fashion.
http://tools.ietf.org/html/rfc3501#section-9
For example:
[Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) ]
[imaplib 2.58]
import imaplib
M = imaplib.IMAP4( 'localhost', 1143 )
M.login( 'user', 'password' )
M.select()
typ, data = M.search(None, 'ALL')
for num in data[0].split():
typ, data = M.fetch(num, '(ENVELOPE)')
print 'Message %s\n%s\n' % (num, data[0][1])
M.close()
M.logout()
Traceback (most recent call last):
File "Test.py", line 3, in <module>
M = imaplib.IMAP4( 'localhost', 1143 )
File "python2.6/imaplib.py", line 184, in __init__
self.welcome = self._get_response()
File "python2.6/imaplib.py", line 935, in _get_response
raise self.abort("unexpected response: '%s'" % resp)
imaplib.abort: unexpected response: '* ok imap4rev1'
Note the 'ok' tag in lower case.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
[bug] imaplib case sensitive Petite Abeille <petite.abeille@gmail.com> - 2012-02-21 10:31 +0100
csiph-web