File
modules/pop3d/ChangeLog
— part of check-in
[f2cdb1bf37]
at
2002-09-03 19:27:28
on branch trunk
—
* pop3.test: Added testcase 6.0, a nano-client to retrieve and
delete all messages on a pop server in one go. Directly derived
from the script for Tcllib bug #501577. Unable to reproduce that
bug :(
* pop3d.tcl (Transfer): Use a single dot to write the
terminator. Not \n.\n. Puts does the terminating \n, and
buildmessage/copymessage the other. Brought the client out of
sync after a retrieval because of an empty line after the
terminator line of the multi-line response.
(user:
andreas_kupries
size: 3192)
0000: 32 30 30 32 2d 30 39 2d 30 33 20 20 41 6e 64 72 2002-09-03 Andr
0010: 65 61 73 20 4b 75 70 72 69 65 73 20 20 3c 61 6e eas Kupries <an
0020: 64 72 65 61 73 5f 6b 75 70 72 69 65 73 40 75 73 dreas_kupries@us
0030: 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e ers.sourceforge.
0040: 6e 65 74 3e 0a 0a 09 2a 20 70 6f 70 33 64 2e 74 net>...* pop3d.t
0050: 63 6c 20 28 54 72 61 6e 73 66 65 72 29 3a 20 55 cl (Transfer): U
0060: 73 65 20 61 20 73 69 6e 67 6c 65 20 64 6f 74 20 se a single dot
0070: 74 6f 20 77 72 69 74 65 20 74 68 65 0a 09 20 20 to write the..
0080: 74 65 72 6d 69 6e 61 74 6f 72 2e 20 4e 6f 74 20 terminator. Not
0090: 5c 6e 2e 5c 6e 2e 20 50 75 74 73 20 64 6f 65 73 \n.\n. Puts does
00a0: 20 74 68 65 20 74 65 72 6d 69 6e 61 74 69 6e 67 the terminating
00b0: 20 5c 6e 2c 20 61 6e 64 0a 09 20 20 62 75 69 6c \n, and.. buil
00c0: 64 6d 65 73 73 61 67 65 2f 63 6f 70 79 6d 65 73 dmessage/copymes
00d0: 73 61 67 65 20 74 68 65 20 6f 74 68 65 72 2e 20 sage the other.
00e0: 42 72 6f 75 67 68 74 20 74 68 65 20 63 6c 69 65 Brought the clie
00f0: 6e 74 20 6f 75 74 20 6f 66 0a 09 20 20 73 79 6e nt out of.. syn
0100: 63 20 61 66 74 65 72 20 61 20 72 65 74 72 69 65 c after a retrie
0110: 76 61 6c 20 62 65 63 61 75 73 65 20 6f 66 20 61 val because of a
0120: 6e 20 65 6d 70 74 79 20 6c 69 6e 65 20 61 66 74 n empty line aft
0130: 65 72 20 74 68 65 0a 09 20 20 74 65 72 6d 69 6e er the.. termin
0140: 61 74 6f 72 20 6c 69 6e 65 20 6f 66 20 74 68 65 ator line of the
0150: 20 6d 75 6c 74 69 2d 6c 69 6e 65 20 72 65 73 70 multi-line resp
0160: 6f 6e 73 65 2e 0a 0a 32 30 30 32 2d 30 38 2d 33 onse...2002-08-3
0170: 31 20 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 1 Andreas Kupri
0180: 65 73 20 20 3c 61 6e 64 72 65 61 73 5f 6b 75 70 es <andreas_kup
0190: 72 69 65 73 40 75 73 65 72 73 2e 73 6f 75 72 63 [email protected]
01a0: 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 eforge.net>...*
01b0: 4e 6f 74 65 20 61 73 69 64 65 3a 20 54 68 65 20 Note aside: The
01c0: 70 6f 70 33 20 73 65 72 76 65 72 20 6d 61 79 20 pop3 server may
01d0: 75 6e 64 65 72 73 74 61 74 65 20 74 68 65 20 73 understate the s
01e0: 69 7a 65 20 6f 66 20 61 20 6d 65 73 73 61 67 65 ize of a message
01f0: 0a 09 20 20 61 6e 64 20 6f 66 20 74 68 65 20 6d .. and of the m
0200: 61 69 6c 64 72 6f 70 2e 20 54 68 69 73 20 68 61 aildrop. This ha
0210: 70 70 65 6e 73 20 61 73 20 74 68 65 20 70 61 63 ppens as the pac
0220: 6b 61 67 65 20 27 6d 69 6d 65 27 20 77 65 20 75 kage 'mime' we u
0230: 73 65 0a 09 20 20 74 6f 20 74 72 61 6e 73 66 65 se.. to transfe
0240: 72 20 61 20 6d 65 73 73 61 67 65 20 6d 61 79 20 r a message may
0250: 61 64 64 20 61 64 64 69 74 69 6f 6e 61 6c 20 68 add additional h
0260: 65 61 64 65 72 73 20 6e 6f 74 20 70 72 65 73 65 eaders not prese
0270: 6e 74 20 69 6e 0a 09 20 20 74 68 65 20 6f 72 69 nt in.. the ori
0280: 67 69 6e 61 6c 20 6d 65 73 73 61 67 65 20 28 46 ginal message (F
0290: 6f 72 20 65 78 61 6d 70 6c 65 20 4d 69 6d 65 2d or example Mime-
02a0: 56 65 72 73 69 6f 6e 20 61 6e 64 2f 6f 72 0a 09 Version and/or..
02b0: 20 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 29 2e Content-Type).
02c0: 0a 0a 09 2a 20 70 6f 70 33 64 2e 74 63 6c 20 28 ...* pop3d.tcl (
02d0: 3a 3a 70 6f 70 33 64 3a 3a 54 72 61 6e 73 66 65 ::pop3d::Transfe
02e0: 72 29 3a 20 46 69 78 65 64 20 6f 76 65 72 73 69 r): Fixed oversi
02f0: 67 68 74 20 69 6e 20 6d 79 20 75 73 61 67 65 20 ght in my usage
0300: 6f 66 0a 09 20 20 27 6d 69 6d 65 3a 3a 63 6f 70 of.. 'mime::cop
0310: 79 6d 65 73 73 61 67 65 27 2e 20 54 68 69 73 20 ymessage'. This
0320: 63 6f 6d 6d 61 6e 64 20 63 6f 70 69 65 73 20 61 command copies a
0330: 20 6d 69 6d 65 20 6d 65 73 73 61 67 65 20 74 6f mime message to
0340: 20 61 0a 09 20 20 63 68 61 6e 6e 65 6c 2c 20 62 a.. channel, b
0350: 75 74 20 64 6f 65 73 20 6e 6f 74 20 6b 6e 6f 77 ut does not know
0360: 20 61 62 6f 75 74 20 74 68 65 20 66 72 61 6d 69 about the frami
0370: 6e 67 20 70 72 6f 74 6f 63 6f 6c 2e 20 49 6e 20 ng protocol. In
0380: 6f 74 68 65 72 0a 09 20 20 77 6f 72 64 73 2c 20 other.. words,
0390: 69 74 20 64 6f 65 73 20 6e 6f 74 20 77 72 69 74 it does not writ
03a0: 65 20 74 68 65 20 73 69 6e 67 75 6c 61 72 20 64 e the singular d
03b0: 6f 74 20 63 6c 6f 73 69 6e 67 20 61 20 70 6f 70 ot closing a pop
03c0: 33 20 64 61 74 61 0a 09 20 20 74 72 61 6e 73 66 3 data.. transf
03d0: 65 72 2e 20 57 65 20 68 61 76 65 20 74 6f 20 64 er. We have to d
03e0: 6f 20 74 68 69 73 20 69 6e 20 74 68 65 20 63 61 o this in the ca
03f0: 6c 6c 69 6e 67 20 72 6f 75 74 69 6e 65 2e 20 41 lling routine. A
0400: 64 64 65 64 20 73 75 63 68 0a 09 20 20 61 20 70 dded such.. a p
0410: 69 65 63 65 20 6f 66 20 63 6f 64 65 2e 20 46 69 iece of code. Fi
0420: 78 65 64 20 70 72 6f 62 6c 65 6d 20 77 69 74 68 xed problem with
0430: 20 64 69 73 74 69 6e 67 75 69 73 68 69 6e 67 20 distinguishing
0440: 52 45 54 52 20 61 6e 64 20 54 4f 50 0a 09 20 20 RETR and TOP..
0450: 6d 6f 64 65 73 2c 20 77 72 6f 6e 67 20 63 6f 6e modes, wrong con
0460: 64 69 74 69 6f 6e 61 6c 2e 0a 0a 09 2a 20 70 6f ditional....* po
0470: 70 33 64 2e 74 65 73 74 3a 20 0a 09 2a 20 70 6f p3d.test: ..* po
0480: 70 33 64 2e 74 63 6c 20 28 43 68 65 63 6b 4c 6f p3d.tcl (CheckLo
0490: 67 69 6e 29 3a 20 4e 6f 77 20 61 64 64 69 74 69 gin): Now additi
04a0: 6f 6e 61 6c 6c 79 20 72 65 74 72 69 65 76 65 73 onally retrieves
04b0: 20 73 69 7a 65 20 6f 66 0a 09 20 20 6d 61 69 6c size of.. mail
04c0: 64 72 6f 70 20 61 66 74 65 72 20 71 75 65 72 79 drop after query
04d0: 69 6e 67 20 74 68 65 20 6e 75 6d 62 65 72 20 6f ing the number o
04e0: 66 20 77 61 69 74 69 6e 67 20 6d 65 73 73 61 67 f waiting messag
04f0: 65 73 2e 0a 09 20 20 28 48 5f 73 74 61 74 29 3a es... (H_stat):
0500: 20 52 65 74 75 72 6e 73 20 73 69 7a 65 20 6f 66 Returns size of
0510: 20 6d 61 69 6c 64 72 6f 70 20 61 73 20 73 65 63 maildrop as sec
0520: 6f 6e 64 20 72 65 73 75 6c 74 20 6f 66 0a 09 20 ond result of..
0530: 20 53 54 41 54 2e 20 42 75 67 66 69 78 2c 20 70 STAT. Bugfix, p
0540: 6f 70 33 64 20 77 61 73 20 6e 6f 74 20 72 66 63 op3d was not rfc
0550: 20 31 39 33 39 20 63 6f 6d 70 6c 69 61 6e 74 20 1939 compliant
0560: 77 69 74 68 20 72 65 73 70 65 63 74 20 74 6f 0a with respect to.
0570: 09 20 20 53 54 41 54 2c 20 61 6e 64 20 6e 6f 77 . STAT, and now
0580: 20 69 73 2e 20 54 68 69 73 20 70 72 6f 62 6c 65 is. This proble
0590: 6d 20 77 61 73 20 66 6f 75 6e 64 20 77 68 69 6c m was found whil
05a0: 65 20 77 6f 72 6b 69 6e 67 20 6f 6e 20 74 68 65 e working on the
05b0: 0a 09 20 20 74 65 73 74 73 75 69 74 65 20 66 6f .. testsuite fo
05c0: 72 20 74 68 65 20 70 6f 70 33 20 70 61 63 6b 61 r the pop3 packa
05d0: 67 65 20 28 52 65 73 75 6c 74 20 6f 66 20 70 6f ge (Result of po
05e0: 70 33 3a 3a 73 74 61 74 20 77 61 73 0a 09 20 20 p3::stat was..
05f0: 62 6f 67 75 73 29 2e 20 55 70 64 61 74 65 64 20 bogus). Updated
0600: 74 68 65 20 74 65 73 74 73 75 69 74 65 2e 0a 0a the testsuite...
0610: 09 2a 20 70 6f 70 33 64 5f 64 62 6f 78 2e 74 63 .* pop3d_dbox.tc
0620: 6c 3a 20 0a 09 2a 20 70 6f 70 33 64 5f 64 62 6f l: ..* pop3d_dbo
0630: 78 2e 6d 61 6e 3a 20 6d 65 74 68 6f 64 20 27 73 x.man: method 's
0640: 69 7a 65 27 20 6e 6f 20 61 63 63 65 70 74 73 20 ize' no accepts
0650: 61 20 63 61 6c 6c 20 77 69 74 68 6f 75 74 20 6d a call without m
0660: 65 73 73 61 67 65 0a 09 20 20 69 64 20 61 6e 64 essage.. id and
0670: 20 72 65 74 75 72 6e 73 20 74 68 65 20 74 6f 74 returns the tot
0680: 61 6c 20 73 69 7a 65 20 6f 66 20 74 68 65 20 6d al size of the m
0690: 61 69 6c 20 64 72 6f 70 20 66 6f 72 20 74 68 61 ail drop for tha
06a0: 74 0a 09 20 20 63 61 73 65 2e 20 52 65 61 73 6f t.. case. Reaso
06b0: 6e 20 66 6f 72 20 74 68 65 20 63 68 61 6e 67 65 n for the change
06c0: 3a 20 73 65 65 20 61 62 6f 76 65 2e 0a 0a 32 30 : see above...20
06d0: 30 32 2d 30 36 2d 31 37 20 20 41 6e 64 72 65 61 02-06-17 Andrea
06e0: 73 20 4b 75 70 72 69 65 73 20 20 3c 61 6e 64 72 s Kupries <andr
06f0: 65 61 73 5f 6b 75 70 72 69 65 73 40 75 73 65 72 eas_kupries@user
0700: 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 s.sourceforge.ne
0710: 74 3e 0a 0a 09 2a 20 70 6f 70 33 64 2e 74 65 73 t>...* pop3d.tes
0720: 74 3a 20 4d 6f 64 69 66 69 65 64 20 74 65 73 74 t: Modified test
0730: 73 75 69 74 65 20 63 6f 75 72 74 65 73 79 20 47 suite courtesy G
0740: 65 72 61 6c 64 20 4c 65 73 74 65 72 0a 09 20 20 erald Lester..
0750: 3c 67 77 6c 65 73 74 65 72 40 75 73 65 72 73 2e <gwlester@users.
0760: 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e sourceforge.net>
0770: 20 66 6f 72 20 62 65 74 74 65 72 20 65 78 65 63 for better exec
0780: 75 74 69 6f 6e 20 6f 66 20 74 68 65 0a 09 20 20 ution of the..
0790: 73 75 62 73 68 65 6c 6c 73 20 75 6e 64 65 72 20 subshells under
07a0: 77 69 6e 64 6f 77 73 2e 0a 0a 32 30 30 32 2d 30 windows...2002-0
07b0: 35 2d 31 35 20 20 41 6e 64 72 65 61 73 20 4b 75 5-15 Andreas Ku
07c0: 70 72 69 65 73 20 20 3c 61 6e 64 72 65 61 73 5f pries <andreas_
07d0: 6b 75 70 72 69 65 73 40 75 73 65 72 73 2e 73 6f [email protected]
07e0: 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a urceforge.net>..
07f0: 09 2a 20 70 6f 70 33 64 2e 74 65 73 74 3a 0a 09 .* pop3d.test:..
0800: 2a 20 70 6f 70 33 64 2e 6d 61 6e 3a 0a 09 2a 20 * pop3d.man:..*
0810: 70 6f 70 33 64 5f 64 62 6f 78 2e 74 63 6c 3a 20 pop3d_dbox.tcl:
0820: 53 70 6c 69 74 20 70 6f 72 74 20 69 6e 74 6f 20 Split port into
0830: 63 6f 6e 66 69 67 75 72 65 64 20 70 6f 72 74 20 configured port
0840: 61 6e 64 20 74 72 75 65 0a 09 20 20 70 6f 72 74 and true.. port
0850: 2e 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 74 68 . This allows th
0860: 65 20 75 73 61 67 65 20 6f 66 20 70 6f 72 74 20 e usage of port
0870: 22 30 22 20 74 6f 20 66 6f 72 63 65 20 61 75 74 "0" to force aut
0880: 6f 2d 73 65 6c 65 63 74 69 6f 6e 0a 09 20 20 6f o-selection.. o
0890: 66 20 61 20 66 72 65 65 20 70 6f 72 74 2e 20 44 f a free port. D
08a0: 6f 63 75 6d 65 6e 74 65 64 20 74 68 65 20 73 70 ocumented the sp
08b0: 65 63 69 61 6c 20 62 65 68 61 76 69 6f 75 72 20 ecial behaviour
08c0: 6f 66 0a 09 20 20 2d 70 6f 72 74 2e 20 43 72 65 of.. -port. Cre
08d0: 61 74 65 64 20 74 65 73 74 73 75 69 74 65 20 66 ated testsuite f
08e0: 6f 72 20 70 6f 70 33 20 73 65 72 76 65 72 2e 20 or pop3 server.
08f0: 54 63 6c 6c 69 62 20 23 35 33 32 32 31 36 2e 0a Tcllib #532216..
0900: 0a 32 30 30 32 2d 30 35 2d 31 34 20 20 41 6e 64 .2002-05-14 And
0910: 72 65 61 73 20 4b 75 70 72 69 65 73 20 20 3c 61 reas Kupries <a
0920: 6e 64 72 65 61 73 5f 6b 75 70 72 69 65 73 40 75 ndreas_kupries@u
0930: 73 65 72 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 sers.sourceforge
0940: 2e 6e 65 74 3e 0a 0a 09 2a 20 70 6f 70 33 64 5f .net>...* pop3d_
0950: 64 62 6f 78 2e 6d 61 6e 3a 0a 09 2a 20 70 6f 70 dbox.man:..* pop
0960: 33 64 5f 64 62 6f 78 2e 74 63 6c 3a 0a 09 2a 20 3d_dbox.tcl:..*
0970: 70 6f 70 33 64 5f 64 62 6f 78 2e 74 65 73 74 3a pop3d_dbox.test:
0980: 20 4e 65 77 20 6d 65 74 68 6f 64 20 5b 64 65 73 New method [des
0990: 74 72 6f 79 5d 2e 20 45 78 74 65 6e 64 65 64 0a troy]. Extended.
09a0: 09 20 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e . documentation
09b0: 2e 20 43 6c 61 72 69 66 69 65 64 20 69 6e 74 65 . Clarified inte
09c0: 72 61 63 74 69 6f 6e 20 6c 6f 63 6b 2f 72 65 6d raction lock/rem
09d0: 6f 76 65 20 61 6e 64 20 69 6e 74 65 72 61 63 74 ove and interact
09e0: 69 6f 6e 0a 09 20 20 6c 6f 63 6b 2f 73 74 61 74 ion.. lock/stat
09f0: 2f 28 73 69 7a 65 2f 67 65 74 2f 64 65 6c 65 29 /(size/get/dele)
0a00: 2e 20 41 64 64 65 64 20 63 68 65 63 6b 73 20 6f . Added checks o
0a10: 66 20 6d 65 73 73 61 67 65 20 69 64 73 20 69 6e f message ids in
0a20: 20 73 69 7a 65 2c 0a 09 20 20 67 65 74 2c 20 64 size,.. get, d
0a30: 65 6c 65 2e 20 41 64 64 65 64 20 67 65 6e 65 72 ele. Added gener
0a40: 61 6c 20 63 68 65 63 6b 20 6f 66 20 64 65 66 69 al check of defi
0a50: 6e 65 20 62 61 73 65 20 64 69 72 65 63 74 6f 72 ne base director
0a60: 79 20 74 6f 20 61 6c 6c 0a 09 20 20 6d 65 74 68 y to all.. meth
0a70: 6f 64 73 2e 20 41 64 64 65 64 20 74 65 73 74 73 ods. Added tests
0a80: 75 69 74 65 2e 20 42 75 67 66 69 78 65 73 2e 20 uite. Bugfixes.
0a90: 54 63 6c 6c 69 62 20 23 35 33 32 32 31 36 2e 0a Tcllib #532216..
0aa0: 0a 09 2a 20 70 6f 70 33 64 5f 75 64 62 2e 6d 61 ..* pop3d_udb.ma
0ab0: 6e 3a 0a 09 2a 20 70 6f 70 33 64 5f 75 64 62 2e n:..* pop3d_udb.
0ac0: 74 63 6c 3a 20 0a 09 2a 20 70 6f 70 33 64 5f 75 tcl: ..* pop3d_u
0ad0: 64 62 2e 74 65 73 74 3a 20 44 6f 63 75 6d 65 6e db.test: Documen
0ae0: 74 65 64 20 5b 64 65 73 74 72 6f 79 5d 2e 20 46 ted [destroy]. F
0af0: 69 78 65 64 20 64 6f 63 75 6d 65 6e 74 61 74 69 ixed documentati
0b00: 6f 6e 20 6f 66 0a 09 20 20 5b 6c 6f 6f 6b 75 70 on of.. [lookup
0b10: 5d 2c 20 72 65 66 65 72 65 64 20 74 6f 20 6e 6f ], refered to no
0b20: 6e 2d 65 78 69 73 74 69 6e 67 20 6d 65 74 68 6f n-existing metho
0b30: 64 20 5b 64 6f 5d 2e 20 41 64 64 65 64 20 5b 64 d [do]. Added [d
0b40: 65 73 74 72 6f 79 5d 0a 09 20 20 6d 65 74 68 6f estroy].. metho
0b50: 64 2e 20 41 64 64 65 64 20 74 65 73 74 20 73 75 d. Added test su
0b60: 69 74 65 2e 20 54 63 6c 6c 69 62 20 23 35 33 32 ite. Tcllib #532
0b70: 32 31 36 2e 0a 0a 32 30 30 32 2d 30 33 2d 31 39 216...2002-03-19
0b80: 20 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 65 Andreas Kuprie
0b90: 73 20 20 3c 61 6e 64 72 65 61 73 5f 6b 75 70 72 s <andreas_kupr
0ba0: 69 65 73 40 75 73 65 72 73 2e 73 6f 75 72 63 65 [email protected]
0bb0: 66 6f 72 67 65 2e 6e 65 74 3e 0a 0a 09 2a 20 4e forge.net>...* N
0bc0: 65 77 20 6d 6f 64 75 6c 65 2e 20 50 6f 70 33 20 ew module. Pop3
0bd0: 73 65 72 76 65 72 2c 20 61 6e 64 20 61 73 73 6f server, and asso
0be0: 63 69 61 74 65 64 20 6f 62 6a 65 63 74 73 20 66 ciated objects f
0bf0: 6f 72 20 73 69 6d 70 6c 65 20 75 73 65 72 0a 09 or simple user..
0c00: 20 20 61 6e 64 20 6d 61 69 6c 62 6f 78 20 6d 61 and mailbox ma
0c10: 6e 61 67 65 6d 65 6e 74 2e 20 4e 6f 20 74 65 73 nagement. No tes
0c20: 74 73 75 69 74 65 20 79 65 74 2e 20 54 65 73 74 tsuite yet. Test
0c30: 73 75 69 74 65 20 77 69 6c 6c 20 62 65 0a 09 20 suite will be..
0c40: 20 77 72 69 74 74 65 6e 20 69 6e 20 63 6f 6e 6a written in conj
0c50: 75 6e 63 74 69 6f 6e 20 77 69 74 68 20 74 65 73 unction with tes
0c60: 74 73 75 69 74 65 20 66 6f 72 20 70 6f 70 33 20 tsuite for pop3
0c70: 6d 6f 64 75 6c 65 2e 0a module..