| Ticket UUID: | 951568 | |||
| Title: | Problems sending long messages. | |||
| Type: | Bug | Version: | None | |
| Submitter: | patthoyts | Created on: | 2004-05-10 22:46:54 | |
| Subsystem: | smtp | Assigned To: | andreas_kupries | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2004-05-13 14:02:21 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2004-05-13 07:02:21 | |||
| Description: |
From Peter Campbell on comp.lang.tcl Message-ID: <[email protected]> I have done some more debugging and found the problem to be with the "Trf" package, an incompatibility. The transform function of the "trf" package sends back a command "query/ratio" which the "smtp::wdata" function does not know - this returns the error. I included some debugging information in the mime package to delve deeper into the code and find the original error messages, rather than the message as reported by the application. By editing "smtp.tcl" and removing the usage of Trf the sending of the email works. ie: remove the trf line at the top, so create our own transform procedure. smtp.tcl; line 37: if {[catch {package require Trf 2.0}]} { # Trf is not available, but we can live without it as long as the # transform and unstack procs are defined. # Warning! # This is a fragile emulation of the more general calling sequence # that appears to work with this code here. proc transform {args} { upvar state mystate set mystate(size) 1 } proc unstack {channel} { # do nothing return } set ::smtp::trf 0 } The following is the output from my debugging: The following is the output from my debugging: (Desktop) 11 % smtp::sendmessage $multiT -servers [list {localhost}] -debug 1 \ > -header [list From "<[email protected]>"] \ > -header [list To [email protected]] \ > -header [list Subject "Invoice TEST"] Trying localhost... <-- 220 hermes.acs.co.nz ESMTP Sendmail 8.11.6/8.11.6; Tue, 11 May 2004 09:39:31 +1200 --> EHLO localhost (wait upto 300 seconds) <-- 250-hermes.acs.co.nz Hello dhcp67.acs.co.nz [192.168.100.67], pleased to meet you <-- 250-ENHANCEDSTATUSCODES <-- 250-8BITMIME <-- 250-SIZE <-- 250-DSN <-- 250-ONEX <-- 250-ETRN <-- 250-XUSR <-- 250 HELP --> ONEX (wait upto 300 seconds) <-- 250 2.0.0 Only one transaction --> MAIL FROM:<[email protected]> (wait upto 600 seconds) <-- 250 2.1.0 <[email protected]>... Sender ok --> RCPT TO:<[email protected]> (wait upto 3600 seconds) <-- 250 2.1.5 <[email protected]>... Recipient ok --> DATA (wait upto 300 seconds) <-- 354 Enter mail, end with "." on a line by itself result = ecode = NONE einfo = Unknown command "query/ratio" while executing "error "Unknown command \"$command\""" ("default" arm line 2) invoked from within "switch -- $command { create/read - create/write - clear/write - delete/write { set s..." (procedure "::smtp::wdata" line 6) invoked from within "::smtp::wdata ::smtp::1 query/ratio {}" I am sure the correct way to solve this problem is to update the "smtp::wdata" procedure to handle the "query/ratio" command (and any others that the Trf package provides). Plus enhance the flow of error messages within the mime/smtp package so the original error information is not lost. | |||
| User Comments: |
andreas_kupries added on 2004-05-13 14:02:21:
Logged In: YES user_id=75003 Fixed in head. andreas_kupries added on 2004-05-13 00:02:40: Logged In: YES user_id=75003 Hm. This could lead to difficult to diagnose errors, when another new method is asked for, returns boguis result or does nothng ... silent failure. I rather like it more to throw the error. As long as it is not caught somewhere up the chain. mrose added on 2004-05-12 03:23:52: Logged In: YES
user_id=24077
> Note: A default branch is actually present, and it generates
> an error message "Unknown command FOO".
i have no idea what i could have been thinking when i wrote that. please
keep the default branch and just get rid of the contents, i.e.,
default {}
andreas_kupries added on 2004-05-12 00:46:10: Logged In: YES user_id=75003 I will do that. This seems to be case of where the reflection transform in Trf evolved, but mime was not adapted to the change. I checked and the 'query/ratio', and some other messages are missing. I will add them. One branch, create/read is duplicated. Will fix that as well. Note: A default branch is actually present, and it generates an error message "Unknown command FOO". mrose added on 2004-05-11 06:34:49: Logged In: YES user_id=24077 i agree. in addition to adding the query/ratio branch, perhaps we can add a default branch? | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki