Tcl Library Source Code

View Ticket
Login
2026-02-02
00:44 • New ticket [dcf333e549] Content-Transfer-Encoding header produced twice. artifact: ed387ee8ae user: anonymous

Ticket UUID: dcf333e5499e4bae2ac3fe00a415db44ab0c523b
Title: Content-Transfer-Encoding header produced twice
Type: Bug Version: 1.7.2
Submitter: anonymous Created on: 2026-02-02 00:44:03
Subsystem: mime Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-02-02 00:44:03
Resolution: None Closed By: nobody
    Closed on:
Description:
Setting the -encoding in ::mime::initialize produces the Content-Transfer-Encoding header two times. Code to reproduce the error:

package require mime 1.7.2-

set text1 "Text1 body\n"
set token1 [::mime::initialize -canonical text/plain -encoding 8bit -string $text1]
puts -nonewline [::mime::buildmessage $token1]

Outputs:
MIME-Version: 1.0
Content-ID: <1741.1769992543.1@bombe>
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Text1 body