offlineimap rev 494
"Automatic Subversion Change Mailer" <[email protected]> Wed, 16 Jul 2003 13:14:52 -0500 (CDT)
| Newsgroups | gmane.mail.imap.offlineimap.subversion |
|---|---|
| Message-ID | <[email protected]> |
You are receiving this message because
all commits get sent to this address.
Author: jgoerzen
Date: 2003-07-16 13:14:42 -0500 (Wed, 16 Jul 2003)
New Revision: 494
Modified:
imaplib/head/imap2/parser/imap.g
Log:
Added copyright notice, removed old code, set svn:keywords
Diff:
Modified: imaplib/head/imap2/parser/imap.g
==============================================================================
--- imaplib/head/imap2/parser/imap.g 2003-07-16 18:12:44 UTC (rev 493)
+++ imaplib/head/imap2/parser/imap.g 2003-07-16 18:14:42 UTC (rev 494)
@@ -1,6 +1,25 @@
# Implementation of grammar from RFC3501
+# $Id$
+# COPYRIGHT #
+# Copyright (C) 2002 John Goerzen
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# END OF COPYRIGHT #
+
parser IMAP:
token END: "$"
@@ -516,86 +535,3 @@
##############################
rule zone: PLUSMINUS DIGITx4 {{ return PLUSMINUS + DIGITx4 }}
-
-
- rule address:
-
- token ATOM_CHAR: r'(?![(){ %("\\\x00-\x1f\x7f])[\x01-\x7f]'
- token CHAR: r'[\x01-\x7f]'
- token CHAR8: r'[\x01-\xff]'
- token CRLF: r'\x0d\x0a'
- token CTL: r'[\x00-\x1f\x7f]'
- token digit: r'[0-9]'
- token digit_nz: r'[1-9]'
- token list_wildcards: r'[%*]'
- token quoted_specials: r'["\\]'
- token SPACE: r'[ ]'
- token TEXT_CHAR: r'(?![\n\r])[\x01-\x7f]'
-
-
- rule goal: response END {{ return response }}
-
- rule astring: atom {{return ('astring', atom)}} | string {{return ('astring', string)}}
-
- rule atom: ATOM_CHAR {{ v = ATOM_CHAR }}
- ( ATOM_CHAR {{ v += ATOM_CHAR }} ) *
- {{ return ('atom', v) }}
-
- rule atom_specials: r'\(' | r'\)' | r'\{' | SPACE | CTL | list_wildcards | quoted_specials {{ return }}
-
- rule base64: {{ v = '' }}
- (base64_char_x4 {{ v += base64_char_x4}} ) *
- [base64_terminal {{ v += base64_terminal }} ]
-
- rule base64_char: alpha {{ return alpha }} |
- digit {{ return digit }} |
- "[+]" {{ return '+' }} |
- "/" {{ return '/' }}
-
- rule base64_char_x4: {{ v = '' }}
- base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- {{ return v }}
-
- rule base64_terminal: {{ v = '' }}
- ( base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- "==" {{ v += "==" }} ) |
- ( base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- base64_char {{ v += base64_char }}
- "=" {{ v += "=" }} )
- {{ return v }}
-
- rule continue_req: r'[+]' SPACE
- (resp_text {{ return resp_text }} || base64 {{ return base64}} )
-
- rule digit: "0" {{ return "0" }} | digit_nz {{ return digit_nz }}
-
-
- rule number: {{ v = '' }}
- (digit {{ v += digit }} ) +
- {{ return int(v) }}
-
-
- rule response: {{ v = [] }}
- ( continue_req {{ v.append(continue_req) }}
- | response_data {{ v.append(response_data) }} ) *
- response_done {{ return (response_done, v) }}
-
-# FIXME: add text_mime2 to resp_text
- rule resp_text: {{ v = [] }}
- [r'\[' resp_text_code r'\]' SPACE {{ v.append(resp_text_code) }} ]
- text {{ v.append(text) }}
- {{ return v }}
-
- rule text: {{ v = '' }}
- (TEXT_CHAR {{ v += TEXT_CHAR}} ) +
- {{ return v }}
-
- rule string: quoted {{ return ('string', quoted) }}
- | literal {{ return ('string', literal) }}
-
-