Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1dd19ccd149660d0a8ac9816d14e649d1fb15147
Title: SMTPd Delivery Callback Error
Type: Patch Version: tcl86 tcllib1.18
Submitter: AaronM Created on: 2022-06-30 13:06:11
Subsystem: smtpd Assigned To:
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-11-16 00:06:14
Resolution: None Closed By: nobody
    Closed on:
Description:
Line 530 of smtpd.tcl tries to eval a command but does not use eval. Line should be:

if {[catch {eval $deliver [state $channel from] \

not

if {[catch {$deliver [state $channel from] \
User Comments: serhiy.storchaka added on 2026-11-16 00:06:14:

Proposed fix in branch smtpd-deliver-command-prefix: -deliver is called as a command prefix with {*}. The eval suggested in the ticket would break on message data with spaces. Adds smtpd.test.