MIME/SMTP deleting text



I am using the MIME/SMTP packages in, if not the latest, a very recent
version of tcllib. For some reason it appears to be deleting text. I am
sending a line with embedded HTML but I do not want it encoded as HTML. It
is just text. The receiving program will take care of encoding the HTML.
The problem is that either MIME or SMTP is deleting the text, see the before
and after examples below. If I just use sendmail to mail the file then it
is correctly received. This is on RH Linux 8.0 and tcl 8.4.5.

Granted this is probably user error since the documentation for these
packages is as clear as mud, but other than this area the packages seem to
work fine. I also use these packages to encode the finished report as HTML
and that also seems to work fine.

File to be mailed:
# Header definitions
AI_HDR1_1 <B>Bold Header</B>
AI_HDR3_2 <B>Header <a href="http://www.Some-web-site.com";> Without a
tab</A></B>
AI_HDR4_3 Header <a href="http://www.Some-web-site.com";> Without a tab</A>

File at Linux inbox (/var/spool/mail/guest)
# Header definitions
AI_HDR1_1 <B>Bold Header</B>
AI_HDR3_2 <B>Header <a hreftab</A></B>
AI_HDR4_3 Header <a href</A>

Email proc, with some editing for clarity

proc SendEmail {fileName to} {

catch {
set token [mime::initialize -canonical text/plain -file $fileName]
smtp::sendmessage $token \
-header [list To $to] \
-header [list From $::WEB_TESTER] \
-header [list Bcc $::ADMIN] \
-header [list Subject "Header Info"]
}
mime::finalize $token
} catchResult
Log "$P CATCH: $catchResult"
}


.



Relevant Pages

  • Re: MIME/SMTP deleting text
    ... I am sending a line with embedded HTML but I do not want it ... > is deleting the text, see the before and after examples below. ... > packages is as clear as mud, but other than this area the packages seem ... for some reason that results in text deletion. ...
    (comp.lang.tcl)
  • Machine-editable DOM/sexpr model specifying HTML output to be generated?
    ... an editable DOM, which starts out with a generic ABORT message ... does my purpose (second paragraph) sound reasonable ... generate HTML output to standard output live at the moment I call ... is to ask anyone with experience with any of those packages to ...
    (comp.lang.lisp)
  • [Full-Disclosure] SuSE Security Announcement: hypermail (SuSE-SA:2003:0012)
    ... read access to files belonging to the host hypermail is running on. ... download and install the new packages from our FTP servers. ... The textbased web-browser w3m does not properly escape HTML tags. ... standard appendix: authenticity verification, ...
    (Full-Disclosure)
  • SuSE Security Announcement: hypermail (SuSE-SA:2003:0012)
    ... read access to files belonging to the host hypermail is running on. ... download and install the new packages from our FTP servers. ... The textbased web-browser w3m does not properly escape HTML tags. ... standard appendix: authenticity verification, ...
    (Bugtraq)
  • ANN: TKWebView and SimpleDND
    ... I've released two open-source Tcl/Tk packages that add some needed functionality to Tk in a cross-platform fashion. ... The first package, TkWebView, provides a lightweight HTML viewer that can either be used as a standalone window or embedded in another widget. ... There are various methods to display drag-and-drop in Tk applications, but they are either limited, complex, or not fully cross-platform. ...
    (comp.lang.tcl)