Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [1749395fff] Patch to ignore directories in Mail Boxes status still Open with 3 other changes artifact: b44957a206 user: serhiy.storchaka
2026-11-15
23:38
Fix [1749395fff]: pop3d::dbox counted subdirectories of a mailbox, e.g. CVS, as messages. Glob only files. leaf check-in: 9e88cd99b3 user: serhiy.storchaka tags: pop3d-dbox-skip-dirs
2007-07-07
05:55 • Ticket [1749395fff] Patch to ignore directories in Mail Boxes status still Open with 4 other changes artifact: 64c212d43b user: andreas_kupries
2007-07-06
22:30 • New ticket [1749395fff]. artifact: d6b0e0f101 user: howell

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.