<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3747" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-03-03T21:17:39-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3747</id>

		<entry>
		<author><name><![CDATA[CoolCold]]></name></author>
		<updated>2003-03-03T21:17:39-04:00</updated>

		<published>2003-03-03T21:17:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17377#p17377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17377#p17377"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17377#p17377"><![CDATA[
You may try to use CYGWIN <a href="http://www.cygwin.com" class="postlink">http://www.cygwin.com</a><br>I'm not sure but postfix exists in current release....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2774">CoolCold</a> — Mon Mar 03, 2003 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2003-02-25T20:20:42-04:00</updated>

		<published>2003-02-25T20:20:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17070#p17070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17070#p17070"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17070#p17070"><![CDATA[
or simple open a port to your isp smtp server and write the smtp code by your own, just <a href="http://www.google.com/search?q=SMTP%20RFC&amp;sourceid=mozilla-search&amp;start=0&amp;start=0&amp;ie=utf-8&amp;oe=utf-8" class="postlink">google</a> for it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Feb 25, 2003 8:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-25T05:56:52-04:00</updated>

		<published>2003-02-25T05:56:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17047#p17047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17047#p17047"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17047#p17047"><![CDATA[
Just spotted that too.<br><br>Windows doesn't provide the sendmail application, and thus can't use it to send the mail.<br><br>What you can do, is download Tcllib, and modify your code, to use the SMTP library included in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Feb 25, 2003 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-02-25T05:54:45-04:00</updated>

		<published>2003-02-25T05:54:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17045#p17045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17045#p17045"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17045#p17045"><![CDATA[
hm... im not sure, but i think i read that only linux/unix can send emails from os. windows needs a program i think. i would say, the script above uses shell-functions to send an email. and windows does not have these functions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Tue Feb 25, 2003 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-25T05:42:49-04:00</updated>

		<published>2003-02-25T05:42:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17043#p17043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17043#p17043"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17043#p17043"><![CDATA[
Maybe if you told us what was wrong with the above, we can direct you more.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Feb 25, 2003 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-02-24T21:54:51-04:00</updated>

		<published>2003-02-24T21:54:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17027#p17027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17027#p17027"/>
		<title type="html"><![CDATA[enote.tcl how to make it works with windrops ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17027#p17027"><![CDATA[
hi <br>i wonder if it is possible to make that script works on a windrop installed on my home computer using the smtp servver from my email account<br><br>any help welcome<br><div class="codebox"><p>Code: </p><pre><code>##################################### eNote.tcl - nix@underz.org ######################################             .eCfg              ####################################set this to 1 if you use sendmail - 0=noset eNoteCfg(sendmail) 0#and set the path bellowset eNoteCfg(smpath) "/usr/sbin/sendmail"#you can use an SMTP server...set eNoteCfg(smtp) smtp.videotron.ca#port for the SMTP serverset eNoteCfg(port) 25##################################bind dcc - eNote eNoteproc eNote {hand idx text} {global eNote botnickif {([string tolower [lindex $text 0]] == "none") &amp;&amp; ([info exists eNote([string tolower $hand])])} {putidx $idx "Removed $eNote([string tolower $hand])."unset eNote([string tolower $hand])eNoteSavereturn 1} elseif {([string tolower [lindex $text 0]] == "none") &amp;&amp; (![info exists eNote([string tolower $hand])])} {putidx $idx "there is no address to delete"return 0}if {([string match *@*.* $text]) &amp;&amp; ([llength $text] == 1)} {set eNote([string tolower $hand]) $texteNoteSaveputidx $idx "All note will be forwarded to $text."return 1} elseif {([string match *@*.* $text]) &amp;&amp; ([llength $text] &gt; 1)} {eNoteSend $hand [lindex $text 0] [join [lrange $text 1 end]]putidx $idx "eNoting [lindex $text 0]..."return 0}putidx $idx "Usage:\n .eNote &lt;email&gt; (set your email) \n .eNote &lt;none&gt; (delete your email) \n .eNote &lt;to email&gt; &lt;message&gt; (send an email to someone)"if {[info exists eNote([string tolower $hand])]} {putidx $idx "Your email: $eNote([string tolower $hand])"}return 0}bind filt - ".note *" eNoteFiltproc eNoteFilt {idx arg} {global eNoteif {([validuser [lindex $arg 1]]) &amp;&amp; ([info exists eNote([string tolower [lindex $arg 1]])])} {set test 1if {[hand2idx [lindex $arg 1]] &gt; -1} {if {([getdccaway [hand2idx [lindex $arg 1]]] == "") &amp;&amp; ([getdccidle [hand2idx [lindex $arg 1]]] &lt; 1800)} {set test 0}}if {$test} {eNoteSend [idx2hand $idx] $eNote([string tolower [lindex $arg 1]]) [join [lrange $arg 2 end]]}}return $arg}proc eNoteSend {from to texte} {global eNoteCfg botnickif {$eNoteCfg(sendmail)} {if {![catch {open "| $eNoteCfg(smpath) -f $from@$botnick -t" "w"} ml]} {puts $ml "To: $to"puts $ml "From: $from@$botnick"puts $ml "$texte"close $ml}} else {if {![catch {connect $eNoteCfg(smtp) $eNoteCfg(port)} ml]} {putidx $ml "HELO $eNoteCfg(smtp)"putidx $ml "MAIL FROM: $from@$botnick.bot"putidx $ml "RCPT TO: $to"putidx $ml "DATA"putidx $ml "$texte"putdcc $ml "."putdcc $ml "QUIT"}}}proc eNoteSave {} {global eNoteset f [open eNote.tcl.conf w]foreach c [array names eNote] {puts $f "$c $eNote($c)"}close $f}proc eNoteLoad {} {global eNoteif {![file exists "eNote.tcl.conf"]} {set f [open eNote.tcl.conf w]; close $f; return 0}set f [open eNote.tcl.conf r]while {[gets $f line] &gt;= 0} {set eNote([lindex $line 0]) [lindex $line 1]}close $f}eNoteLoadbind dcc n eCfg eCfgproc eCfg {hand idx text} {global eNoteCfgif {[string tolower [lindex $text 0]] == "type"} {if {$eNoteCfg(sendmail) == 0} {set eNoteCfg(sendmail) 1; putidx $idx "using sendmail now"; eCfgSave} else {set eNoteCfg(sendmail) 0; putidx $idx "using SMTP now"}return 1} elseif {[string tolower [lindex $text 0]] == "smpath"} {if {[lindex $text 1] != ""} {set eNoteCfg(smpath) "[lindex $text 1]"; putidx $idx "Done"; eCfgSave; return 1} else {putidx $idx "Usage: .eCfg smpath &lt;path to sendmail&gt;"; return 0}} elseif {[string tolower [lindex $text 0]] == "smtp"} {if {[lindex $text 1] != ""} {set eNoteCfg(smtp) "[lindex $text 1]"; putidx $idx "Done"; eCfgSave; return 1} else {putidx $idx "Usage: .eCfg smtp &lt;ip of your smtp server&gt;"; return 0}} elseif {[string tolower [lindex $text 0]] == "port"} {if {[lindex $text 1] != ""} {set eNoteCfg(port) "[lindex $text 1]"; putidx $idx "Done"; eCfgSave; return 1} else {putidx $idx "Usage: .eCfg port &lt;port of your smtp server&gt;"; return 0}} elseif {[string tolower [lindex $text 0]] == "status"} {putidx $idx "          eNote.tcl          "if {$eNoteCfg(sendmail)} {putidx $idx "Using sendmail ($eNoteCfg(smpath))"} else {putidx $idx "Using SMTP server at $eNoteCfg(smtp) port $eNoteCfg(port)"}return 1} else {putidx $idx "Usage: \n .eCfg TYPE   &lt;toggle SMTP/sendmail&gt; \n .eCfg SMPATH &lt;path to sendmail&gt; \n .eCfg SMTP   &lt;ip of the smtp server&gt; \n .eCfg PORT   &lt;port of the smtp server&gt;"return 0}}proc eCfgSave {} {global eNoteCfgset f [open eNote.tcl.setup w]foreach c [array names eNoteCfg] {puts $f "$c $eNoteCfg($c)"}close $f}proc eCfgLoad {} {global eNoteCfgif {![file exists "eNote.tcl.setup"]} {set f [open eNote.tcl.setup w]; close $f; return 0}set f [open eNote.tcl.setup r]while {[gets $f line] &gt;= 0} {set eNoteCfg([lindex $line 0]) [lindex $line 1]}close $f}eCfgLoadputlog "\002eNote.tcl\002 - (.eNote / .eCfg)"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Mon Feb 24, 2003 9:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
