<?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/8688" />

	<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>2004-11-30T11:18:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-30T11:18:51-04:00</updated>

		<published>2004-11-30T11:18:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43304#p43304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43304#p43304"/>
		<title type="html"><![CDATA[dcc to chan script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43304#p43304"><![CDATA[
add this:<div class="codebox"><p>Code: </p><pre><code>bind msg o send send_msgproc send_msg {n u h t} {  send_mail $n $u $h dummy $t}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Nov 30, 2004 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EmOuBi]]></name></author>
		<updated>2004-11-30T06:26:44-04:00</updated>

		<published>2004-11-30T06:26:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43301#p43301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43301#p43301"/>
		<title type="html"><![CDATA[dcc to chan script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43301#p43301"><![CDATA[
Thanks <strong class="text-strong">demond</strong>, it works perfect  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>Well, I want this script to be used for sending short, not so important e-mails. It's fasted then to log-in to your webmail and send it from there  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>Can I ask you another dummy question, will you modify the same script to work when someone type "send <a href="mailto:some@mail.com">some@mail.com</a> blaa" in private, querying the bot  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  (bind msg I guess)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5697">EmOuBi</a> — Tue Nov 30, 2004 6:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-29T22:08:14-04:00</updated>

		<published>2004-11-29T22:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43286#p43286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43286#p43286"/>
		<title type="html"><![CDATA[dcc to chan script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43286#p43286"><![CDATA[
you send the same email several times, each time flagging it with the bothandle of everyone who happens to be on the party line? that seems completely pointless to me, but anyway, here's a channel version:<div class="codebox"><p>Code: </p><pre><code>set mail /var/qmail/bin/qmail-injectbind pub o !send send_mailproc send_mail {n u h c t} {  set t [split $t]  if ![string match *@* [lindex $t 0]] {    puthelp "notice $n :usage: [set ::lastbind] &lt;foo@bar.com&gt; &lt;message&gt;"    return  }  exec echo "($h) [join [lrange $t 1 e]]" | $::mail [lindex $t 0]  return 1}</code></pre></div>naturally, this will send out email only once per customer/command <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> or you would rather have it multiplied by the number of channel users? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 29, 2004 10:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EmOuBi]]></name></author>
		<updated>2004-11-29T16:15:02-04:00</updated>

		<published>2004-11-29T16:15:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43275#p43275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43275#p43275"/>
		<title type="html"><![CDATA[dcc to chan script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43275#p43275"><![CDATA[
How to make this script to be startet with !send command in the channel ?<br><div class="codebox"><p>Code: </p><pre><code>bind dcc -|- send send_mailproc send_mail {hand idx arg} {    if {[llength $arg] &lt; 2} {putdcc $idx "Usage: .send &lt;mail&gt; &lt;message&gt;"return 0    }    set mail [lindex $arg 0]    if {![regexp \[@\] $mail]} {putdcc $idx "Usage: .send &lt;foo@bar.com&gt; &lt;message&gt;"return 0    }    foreach mailsend [whom *] {    set user [lindex $mailsend 0]    set message [lrange $arg 1 end]    set msg "($user) $message"    exec echo $msg | /var/qmail/bin/qmail-inject $mail}}putlog "Mail Send Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5697">EmOuBi</a> — Mon Nov 29, 2004 4:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
