This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incomming Mail forward to a bot

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
E
Evil
Voice
Posts: 17
Joined: Thu May 10, 2007 5:03 am

incomming Mail forward to a bot

Post by Evil »

Hi

I am searching for a script what forward an incmming Mail to a Bot and the bot posted that in a channel ( IRC )

thanks for your help
N
Nimos
Halfop
Posts: 80
Joined: Sun Apr 20, 2008 9:58 am

Post by Nimos »

what kind of mail is it?

if it is a pop3 mailserver, you can contact it via dccsend, but im not very good with that...
E
Evil
Voice
Posts: 17
Joined: Thu May 10, 2007 5:03 am

Post by Evil »

I am not sure what are the best way to do that.

the Mail acc is an pop3

did any do this before? when yes I habe no idea what i have to do :)

So i need an step by step what i have to do. THe best are with tcl script.
E
Evil
Voice
Posts: 17
Joined: Thu May 10, 2007 5:03 am

Post by Evil »

did any have an idea about a tcl script for forward mails via botin a channel ?
g
game_over
Voice
Posts: 29
Joined: Thu Apr 26, 2007 7:22 am

Post by game_over »

I try pop3 connection on a mail server before. But i have success whit pop3 without TLS (Transport Layer Security) this is communication protocol to some servers like pop.gmail.com On simple pop3 servers (you have to search email whit no TLS connection) works perfect POP3 and SMTP.

here exaple (unfinished) for POP3 comunication protocol for (simple servers)

Code: Select all

bind pub - !mail hhh:hoo
proc hhh:hoo {nick uhost hand chan text} {
            set ml [socket "127.0.0.1" 110]
			fconfigure $ml -buffering none -translation binary
			if {[gets $ml] != ""} {
			catch {sendSMTP $ml "USER USERRRR" "get"} user
			putlog "$user"
			catch {sendSMTP $ml "PASS PASSS" "get"} pass
			putlog "$pass"
			catch {sendSMTP $ml "STAT" "get"} stat
			putlog "$stat"
			catch {sendSMTP $ml "QUIT" "get"} closesesion
			putlog "$closesesion"
			close $ml
		} else { putquick "PRIVMSG $nick :Server close connection!"; close $ml; return 0}
}

proc sendSMTP {ml args mode} {
     if {$mode == "get"} {
         puts $ml "[lrange $args 0 end]"
           return [gets $ml]
        } elseif {$mode == "NOget"} {
                  puts $ml "[lrange $args 0 end]"
    }
}
if you whant to have connection whit any servers (and TLS servers) you have to dw TLS.tcl and his module tls.so from here http://sourceforge.net/project/showfile ... p_id=13248
then you have to install open ssl and make configurations :)
I don't have experience whit TLS servers.
Post Reply