Browse code
Fix imap.lisp
Orivej Desh authored on 10/02/2012 11:06:13
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -1,21 +1,3 @@ |
1 |
-#+(version= 7 0) |
|
2 |
-(sys:defpatch "imap" 1 |
|
3 |
- "v1: fetch-letter-sequence support." |
|
4 |
- :type :system |
|
5 |
- :post-loadable t) |
|
6 |
- |
|
7 |
-#+(version= 8 0) |
|
8 |
-(sys:defpatch "imap" 1 |
|
9 |
- "v1: fetch-letter-sequence support." |
|
10 |
- :type :system |
|
11 |
- :post-loadable t) |
|
12 |
- |
|
13 |
-#+(version= 8 1) |
|
14 |
-(sys:defpatch "imap" 1 |
|
15 |
- "v1: Add ssl/tls support for both imap/pop connections." |
|
16 |
- :type :system |
|
17 |
- :post-loadable t) |
|
18 |
- |
|
19 | 1 |
;; -*- mode: common-lisp; package: net.post-office -*- |
20 | 2 |
;; |
21 | 3 |
;; imap.cl |
... | ... |
@@ -44,7 +26,8 @@ |
44 | 26 |
|
45 | 27 |
|
46 | 28 |
(defpackage :net.post-office |
47 |
- (:use :lisp :excl) |
|
29 |
+ (:nicknames #:post-office) |
|
30 |
+ (:use :cl :excl) |
|
48 | 31 |
(:export |
49 | 32 |
#:address-name |
50 | 33 |
#:address-additional |
... | ... |
@@ -324,8 +307,7 @@ |
324 | 307 |
;; a condition either has a server-string or it has a |
325 | 308 |
;; format-control string |
326 | 309 |
(format stream "Post Office condition: ~s~%" identifier) |
327 |
- (if* (and (slot-boundp con 'excl::format-control) |
|
328 |
- (excl::simple-condition-format-control con)) |
|
310 |
+ (if* (and (excl::simple-condition-format-control con)) |
|
329 | 311 |
then (apply #'format stream |
330 | 312 |
(excl::simple-condition-format-control con) |
331 | 313 |
(excl::simple-condition-format-arguments con))) |
... | ... |
@@ -1633,7 +1615,7 @@ |
1633 | 1615 |
(get-line-from-server mb) |
1634 | 1616 |
|
1635 | 1617 |
(if* *debug-imap* |
1636 |
- then (format t "from server: " count) |
|
1618 |
+ then (format t "from server: ") |
|
1637 | 1619 |
(dotimes (i count)(write-char (schar line i))) |
1638 | 1620 |
(terpri)) |
1639 | 1621 |
|
... | ... |
@@ -1922,7 +1904,7 @@ |
1922 | 1904 |
|
1923 | 1905 |
|
1924 | 1906 |
; this used to be exported from the excl package |
1925 |
-#+(version>= 6 0) |
|
1907 |
+;; #+(version>= 6 0) |
|
1926 | 1908 |
(defvar *keyword-package* (find-package :keyword)) |
1927 | 1909 |
|
1928 | 1910 |
(defun kwd-intern-possible-list (form) |
... | ... |
@@ -2102,16 +2084,16 @@ |
2102 | 2084 |
|
2103 | 2085 |
(defvar *line-buffers* nil) |
2104 | 2086 |
|
2105 |
-#+(version>= 8 1) |
|
2106 |
-(defvar *line-buffers-lock* (make-basic-lock :name "line-buffers")) |
|
2087 |
+;; #+(version>= 8 1) |
|
2088 |
+;; (defvar *line-buffers-lock* (make-basic-lock :name "line-buffers")) |
|
2107 | 2089 |
|
2108 | 2090 |
(defmacro with-locked-line-buffers (&rest body) |
2109 |
-#+(version>= 8 1) |
|
2110 |
- `(with-locked-structure (*line-buffers-lock* |
|
2111 |
- :non-smp :without-scheduling) |
|
2112 |
- ,@body) |
|
2113 |
-#-(version>= 8 1) |
|
2114 |
- `(sys::without-scheduling ,@body) |
|
2091 |
+;; #+(version>= 8 1) |
|
2092 |
+;; `(with-locked-structure (*line-buffers-lock* |
|
2093 |
+;; :non-smp :without-scheduling) |
|
2094 |
+;; ,@body) |
|
2095 |
+;; #-(version>= 8 1) |
|
2096 |
+ `(mp:without-scheduling ,@body) |
|
2115 | 2097 |
) |
2116 | 2098 |
|
2117 | 2099 |
(defun get-line-buffer (size) |