| Ticket UUID: | 1749395 | |||
| Title: | Patch to ignore directories in Mail Boxes | |||
| Type: | Patch | Version: | None | |
| Submitter: | howell | Created on: | 2007-07-06 22:30:13 | |
| Subsystem: | pop3d | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Open | Last Modified: | 2026-11-16 00:06:14 | |
| Resolution: | None | Closed By: | ||
| Closed on: | ||||
| Description: |
The simple mailbox database provided with tcllib pop3d fails if a subdirectory is in a mailbox directory. This is the case when a mailbox database for application tests is placed under version control like CVS.
A simple change allows pop3d::dbox to ignore directories in the mailbox path.
For file pop3d_dbox.tcl with id:
RCS: @(#) $Id: pop3d_dbox.tcl,v 1.12 2005/09/28 04:51:23 andreas_kupries Exp $
modify line #299 from:
set state($dir) [lsort [glob -nocomplain [file join $dir *]]]
to:
set state($dir) [lsort [glob -nocomplain -type { f r w } [file join $dir *]]]
| |||
| User Comments: |
serhiy.storchaka added on 2026-11-16 00:06:14:
Proposed fix in branch pop3d-dbox-skip-dirs: the idea of the patch, now with glob -types f -directory, which is fine since tcllib needs Tcl 8.5. Test pop3-dbox-8.4. andreas_kupries added on 2007-07-07 05:55:19: Logged In: YES user_id=75003 Originator: NO Check ... Is the -type feature supported by Tcl 8.3 ? The 'file join' can be replaced '-directory $dir *' as well. Also a feature not likely present in 8.3. Work on that. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki