Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/attachment?V=16
QUERY_STRINGV=16
CONTENT_TYPE
DOCUMENT_URI/revision/attachment
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.71.254.73
REMOTE_PORT48714
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR18.191.171.235
HTTP_CF_RAY87a4b79f8d4122c2-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_CONNECTING_IP18.191.171.235
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit attachment I\ am\ looking\ for\ a\ simple\ line\ of\ code\ to\ incorporate\ in\ the\ program\ below\ which\ send\ a\ zip\ file\ to\ the\ user\ as\ an\ attachment.\ Here\ is\ my\ program:\n======\n\ \ proc\ EmailSendMessage\ \{args\}\ \{\n\ \ \ \ \ \ #\ Verify\ and\ set\ the\ command\ line\ arguments.\n\ \ \ \ \ \ set\ requiredArgs\ \{\n\ \ \ \ \ \ \ \ \ -recipient\ \\\n\ \ \ \ \ \ \ \ \ -subject\ \\\n\ \ \ \ \ \ \ \ \ -body\ \\\n\ \ \ \ \ \ \}\n\ \ \ \ \ \ set\ smtpServer\ \"10.10.125.10\"\n\ \ \ \ \ \ set\ smtpPort\ \"25\"\n\ \ \ \ \ \ set\ originator\ \"[email protected]\"\n\ \ \ \ \ \ \n\ \ \ \ \ \ set\ token\ \[mime::initialize\ -canonical\ text/plain\ -string\ \$body\]\n\ \ \ \ \ \ mime::setheader\ \$token\ Subject\ \$subject\n\ \ \ \ \ \ smtp::sendmessage\ \$token\ -recipients\ \$recipient\ -servers\ \$smtpServer\ -ports\ \$smtpPort\ -originator\ \$originator\n\ \ \ \ \ \ mime::finalize\ \$token\n\ \ \}\n======\n-----\n\nE-mail\ attachments\ constitute\ a\ surprisingly\ large\ and\ even\nunwieldy\ subject.\ \ The\ first\ clarification\ is\ to\ distinguish\nemission\ of\ e-mail\ with\ attachments,\ from\ its\ reception\ and\ninterpretation.\ \ The\ Wiki\ page\ on\ the\ \[mime\]\ package\ focuses\nmostly\ on\ the\ latter.\n\n----\n\n10/31/2002:\ \[Roberto\ Mello\]\ provides\ the\ following\ example:\n======\n\ package\ require\ mime\n\ package\ require\ smtp\n\n\ set\ rcpts\ \[open\ email-list.txt\]\n\ set\ files\ \[lsort\ \[glob\ *.JPG\]\]\n\n\ set\ text\ \"Ooops!\ Some\ of\ the\ pictures\ got\ mixed\ up\ in\ the\ last\ e-mail.\"\n\ append\ text\ \\n\ \"Let's\ try\ this\ again.\"\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \ \\n\ \\n\ \"Happy\ Halloween!\"\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \ \\n\ Your\ friendly\ MASA\ Villages\ Staff\"\n\ \n\ set\ i\ 0\n\ while\ \{\ \[gets\ \$rcpts\ rcpt\]\ !=\ -1\ \}\ \{\n\ \ \ \ \ \ \ \ set\ this_image\ \[lindex\ \$files\ \$i\]\n\ \n\ \ \ \ \ \ \ \ #\ create\ an\ image\ and\ text\n\ \ \ \ \ \ \ \ set\ imageT\ \[mime::initialize\ -canonical\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \"image/jpg\;\ name=\\\"\$this_image\\\"\"\ -file\ \$this_image\]\n\ \ \ \ \ \ \ \ set\ textT\ \[mime::initialize\ -canonical\ text/plain\ -string\ \$text\]\n\ \n\ \ \ \ \ \ \ \ #\ create\ a\ multipart\ containing\ both,\ and\ a\ timestamp\n\ \ \ \ \ \ \ \ set\ multiT\ \[mime::initialize\ -canonical\ multipart/mixed\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -parts\ \[list\ \$imageT\ \$textT\]\]\n\ \n\ \ \ \ \ \ \ \ #\ send\ it\ to\ some\ friends\n\ \ \ \ \ \ \ \ puts\ \"Sending\ to\ \$rcpt:\ \$this_image\"\n\ \ \ \ \ \ \ \ smtp::sendmessage\ \$multiT\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ From\ \"Juliane\ Mello\ <jmello@usu>\"\]\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ To\ \$rcpt\]\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ Subject\ \"Ooops!\"\]\n\ \n\ \ \ \ \ \ \ \ incr\ i\n\ \}\n======\n----\n\nThe\ variety\ of\ ways\ to\ transmit\ e-mail\ attachments\ with\ Tcl\ is\nlarge.\ \ \[CL\]\ keeps\ a\ few\ models\ in\n\[http://www.phaseit.net/claird/comp.unix.programmer/attachments.html#Tcl\].\n\nOne\ of\ the\ reasons\ for\ active\ interest\ in\ the\ range\ of\ possibilities\nis\ typical\ for\ Tcl:\ \ one\ wants\ to\ compensate\ for\ various\ constraints.\nmime\ had\ severe\ flaws\ before\ \[tcllib\]\ 0.8\ (and\ still\ has\ other\nerrors--more\ on\ that,\ later)\nand\ is\ essentially\ unreliable\ with\ Tcl\ before\ 8.2.\nCL\ frequently\ needs\ to\ set\ up\ quick\ e-mail\ operations\ on\ hosts\nequipped\ with\ old\ interpreters\;\ 7.6,\ for\ example,\ in\ the\ case\nof\ a\ client\ met\ in\ January\ 2002.\ \ For\ older\ interpreters,\ it's\nbest\ to\ enlist\ outside\ help,\ as\ with\n======\n\ \ \ \ set\ tmpfile\ /tmp/abc\[pid\]\n\ \ \ \ set\ subject\ \"This\ is\ the\ subject\ line.\"\n\n\ \ \ \ exec\ /usr/local/bin/mpack\ -s\ \$subject\ -o\ \$tmpfile\ \$standard_name\n\ \ \ \ set\ To\ \{The\ distribution\ list\}\n\ \ \ \ set\ recipients\ \"[email protected]\ [email protected]\ [email protected]\"\n\ \ \ \ set\ recipients\ \[join\ \$recipients\ ,\]\n\ \ \ \ exec\ \$sendmail\ -t\ <<\ \\\n\ \ \ \ \"To:\ (\$To)\n\ \ \ \ Bcc:\ \$recipients\n\ \ \ \ \[exec\ cat\ \$tmpfile\]\"\n======\n\n\n\n\n\n\n----\nMutt:\ \ Someone\ had\ contributed\ a\ mutt\ example\ that\ was\ not\ correct\n(mutt\ tossed\ back\ a\ \"bad\ usage\"\ message).\ \ CL's\ taken\ the\ liberty\nof\ simplifying\ the\ example\ from\ four\ lines\ to\ one,\ in\ the\ process\nof\ correcting\ it:\n======\n\ \ \ \ exec\ mutt\ -s\ \$subject\ -a\ \$attachment\ \$to\ <<\ \$body\n\ ======\n----\nOther\ useful\ external\ Unix\ utilities\ include\ pine\ and\ uuencode\n\[\[give\ examples\]\].\n\ \ \ \n----\n\n\[CMM\]:\ Can\ anyone\ enlighten\ on\ the\ proper\ way\ to\ unencode\ incoming\ binary\ attachments\ for\ output\ to\ disk?\n\[CMM\]:\ Note\ for\ the\ unwise\ (like\ me),\ properly\ used\ the\ mime\ package\ will\ automatically\ unencode\ base64\ encoding\ by\ default.\ \ My\ issue\ was\ that\ I\ wasn't\ outputting\ in\ binary\ mode.\ \ To\ fix\ this:\ fconfigure\ \$fileid\ -translation\ binary\n\n----\nFP:\ Another\ useful\ Unix\ utility\ for\ this\ job\ is\ UUDeview\n\[http://www.fpx.de/fp/Software/UUDeview/\]\n======\n\ \ \ \ uuenview\ -b\ -m\ [email protected]\ -s\ \"The\ Subject\"\ filename\n======\n\n<<categories>>\ Internet regexp2} CALL {my render attachment I\ am\ looking\ for\ a\ simple\ line\ of\ code\ to\ incorporate\ in\ the\ program\ below\ which\ send\ a\ zip\ file\ to\ the\ user\ as\ an\ attachment.\ Here\ is\ my\ program:\n======\n\ \ proc\ EmailSendMessage\ \{args\}\ \{\n\ \ \ \ \ \ #\ Verify\ and\ set\ the\ command\ line\ arguments.\n\ \ \ \ \ \ set\ requiredArgs\ \{\n\ \ \ \ \ \ \ \ \ -recipient\ \\\n\ \ \ \ \ \ \ \ \ -subject\ \\\n\ \ \ \ \ \ \ \ \ -body\ \\\n\ \ \ \ \ \ \}\n\ \ \ \ \ \ set\ smtpServer\ \"10.10.125.10\"\n\ \ \ \ \ \ set\ smtpPort\ \"25\"\n\ \ \ \ \ \ set\ originator\ \"[email protected]\"\n\ \ \ \ \ \ \n\ \ \ \ \ \ set\ token\ \[mime::initialize\ -canonical\ text/plain\ -string\ \$body\]\n\ \ \ \ \ \ mime::setheader\ \$token\ Subject\ \$subject\n\ \ \ \ \ \ smtp::sendmessage\ \$token\ -recipients\ \$recipient\ -servers\ \$smtpServer\ -ports\ \$smtpPort\ -originator\ \$originator\n\ \ \ \ \ \ mime::finalize\ \$token\n\ \ \}\n======\n-----\n\nE-mail\ attachments\ constitute\ a\ surprisingly\ large\ and\ even\nunwieldy\ subject.\ \ The\ first\ clarification\ is\ to\ distinguish\nemission\ of\ e-mail\ with\ attachments,\ from\ its\ reception\ and\ninterpretation.\ \ The\ Wiki\ page\ on\ the\ \[mime\]\ package\ focuses\nmostly\ on\ the\ latter.\n\n----\n\n10/31/2002:\ \[Roberto\ Mello\]\ provides\ the\ following\ example:\n======\n\ package\ require\ mime\n\ package\ require\ smtp\n\n\ set\ rcpts\ \[open\ email-list.txt\]\n\ set\ files\ \[lsort\ \[glob\ *.JPG\]\]\n\n\ set\ text\ \"Ooops!\ Some\ of\ the\ pictures\ got\ mixed\ up\ in\ the\ last\ e-mail.\"\n\ append\ text\ \\n\ \"Let's\ try\ this\ again.\"\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \ \\n\ \\n\ \"Happy\ Halloween!\"\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \ \\n\ Your\ friendly\ MASA\ Villages\ Staff\"\n\ \n\ set\ i\ 0\n\ while\ \{\ \[gets\ \$rcpts\ rcpt\]\ !=\ -1\ \}\ \{\n\ \ \ \ \ \ \ \ set\ this_image\ \[lindex\ \$files\ \$i\]\n\ \n\ \ \ \ \ \ \ \ #\ create\ an\ image\ and\ text\n\ \ \ \ \ \ \ \ set\ imageT\ \[mime::initialize\ -canonical\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ \"image/jpg\;\ name=\\\"\$this_image\\\"\"\ -file\ \$this_image\]\n\ \ \ \ \ \ \ \ set\ textT\ \[mime::initialize\ -canonical\ text/plain\ -string\ \$text\]\n\ \n\ \ \ \ \ \ \ \ #\ create\ a\ multipart\ containing\ both,\ and\ a\ timestamp\n\ \ \ \ \ \ \ \ set\ multiT\ \[mime::initialize\ -canonical\ multipart/mixed\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -parts\ \[list\ \$imageT\ \$textT\]\]\n\ \n\ \ \ \ \ \ \ \ #\ send\ it\ to\ some\ friends\n\ \ \ \ \ \ \ \ puts\ \"Sending\ to\ \$rcpt:\ \$this_image\"\n\ \ \ \ \ \ \ \ smtp::sendmessage\ \$multiT\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ From\ \"Juliane\ Mello\ <jmello@usu>\"\]\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ To\ \$rcpt\]\ \\\n\ \ \ \ \ \ \ \ \ \ \ \ -header\ \[list\ Subject\ \"Ooops!\"\]\n\ \n\ \ \ \ \ \ \ \ incr\ i\n\ \}\n======\n----\n\nThe\ variety\ of\ ways\ to\ transmit\ e-mail\ attachments\ with\ Tcl\ is\nlarge.\ \ \[CL\]\ keeps\ a\ few\ models\ in\n\[http://www.phaseit.net/claird/comp.unix.programmer/attachments.html#Tcl\].\n\nOne\ of\ the\ reasons\ for\ active\ interest\ in\ the\ range\ of\ possibilities\nis\ typical\ for\ Tcl:\ \ one\ wants\ to\ compensate\ for\ various\ constraints.\nmime\ had\ severe\ flaws\ before\ \[tcllib\]\ 0.8\ (and\ still\ has\ other\nerrors--more\ on\ that,\ later)\nand\ is\ essentially\ unreliable\ with\ Tcl\ before\ 8.2.\nCL\ frequently\ needs\ to\ set\ up\ quick\ e-mail\ operations\ on\ hosts\nequipped\ with\ old\ interpreters\;\ 7.6,\ for\ example,\ in\ the\ case\nof\ a\ client\ met\ in\ January\ 2002.\ \ For\ older\ interpreters,\ it's\nbest\ to\ enlist\ outside\ help,\ as\ with\n======\n\ \ \ \ set\ tmpfile\ /tmp/abc\[pid\]\n\ \ \ \ set\ subject\ \"This\ is\ the\ subject\ line.\"\n\n\ \ \ \ exec\ /usr/local/bin/mpack\ -s\ \$subject\ -o\ \$tmpfile\ \$standard_name\n\ \ \ \ set\ To\ \{The\ distribution\ list\}\n\ \ \ \ set\ recipients\ \"[email protected]\ [email protected]\ [email protected]\"\n\ \ \ \ set\ recipients\ \[join\ \$recipients\ ,\]\n\ \ \ \ exec\ \$sendmail\ -t\ <<\ \\\n\ \ \ \ \"To:\ (\$To)\n\ \ \ \ Bcc:\ \$recipients\n\ \ \ \ \[exec\ cat\ \$tmpfile\]\"\n======\n\n\n\n\n\n\n----\nMutt:\ \ Someone\ had\ contributed\ a\ mutt\ example\ that\ was\ not\ correct\n(mutt\ tossed\ back\ a\ \"bad\ usage\"\ message).\ \ CL's\ taken\ the\ liberty\nof\ simplifying\ the\ example\ from\ four\ lines\ to\ one,\ in\ the\ process\nof\ correcting\ it:\n======\n\ \ \ \ exec\ mutt\ -s\ \$subject\ -a\ \$attachment\ \$to\ <<\ \$body\n\ ======\n----\nOther\ useful\ external\ Unix\ utilities\ include\ pine\ and\ uuencode\n\[\[give\ examples\]\].\n\ \ \ \n----\n\n\[CMM\]:\ Can\ anyone\ enlighten\ on\ the\ proper\ way\ to\ unencode\ incoming\ binary\ attachments\ for\ output\ to\ disk?\n\[CMM\]:\ Note\ for\ the\ unwise\ (like\ me),\ properly\ used\ the\ mime\ package\ will\ automatically\ unencode\ base64\ encoding\ by\ default.\ \ My\ issue\ was\ that\ I\ wasn't\ outputting\ in\ binary\ mode.\ \ To\ fix\ this:\ fconfigure\ \$fileid\ -translation\ binary\n\n----\nFP:\ Another\ useful\ Unix\ utility\ for\ this\ job\ is\ UUDeview\n\[http://www.fpx.de/fp/Software/UUDeview/\]\n======\n\ \ \ \ uuenview\ -b\ -m\ [email protected]\ -s\ \"The\ Subject\"\ filename\n======\n\n<<categories>>\ Internet} CALL {my revision attachment} CALL {::oo::Obj1384458 process revision/attachment} CALL {::oo::Obj1384456 process}

-errorcode

NONE

-errorinfo

Unknow state transition: LINE -> END
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4