egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

POP3 email script search

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
redshift
Voice


Joined: 12 Dec 2005
Posts: 1
Location: Philadelphia

PostPosted: Mon Dec 12, 2005 12:31 pm    Post subject: POP3 email script search Reply with quote

I've been searching for an eggdrop script that will fetch mail from either a remote pop3 server or a local unix mailbox and broadcast the email contents to the channel. I hope I'm posing this in the correct forum, as I'm not asking anyone to write it... but does anyone know of such a thing?

Any help would be greatly appreciated.

-rs
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Dec 12, 2005 7:57 pm    Post subject: Reply with quote

As far as I know there is no such script. I suggest using Google or a detailed search of the Tcl Archive.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Ehlanna
Voice


Joined: 21 Jul 2005
Posts: 15

PostPosted: Mon Dec 12, 2005 8:06 pm    Post subject: Reply with quote

Sounds like a potential 'nasty' if anyone gets hold of that mail address and starts spamming it ...

One avenue of approach (assuming a Unix mail account) would be to manually process the mail file directly. Just off the top of my head you would probably want a mix of shell/tcl to handle it: the shell (probably perl?) to clone the mail file (and clear it out to 'flag' it as having been processed) and to do some basic topping and tailing to split the file up into suitable chunks (assuming that can be done easily!). Then have the tcl process that file in knowledge of the fact that the file is in a particluar format (and 'iffy' mails or ones that do not seem to be able to be correctly processed can be offloaded to an 'error file' for manual intervention).
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Dec 12, 2005 9:47 pm    Post subject: Reply with quote

Ehlanna wrote:
Sounds like a potential 'nasty' if anyone gets hold of that mail address and starts spamming it ...

As all details are stored in text files it's a disaster waiting to happen.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Dec 13, 2005 11:35 pm    Post subject: Reply with quote

no need of Perl/shell

to get ideas about fetching from your local UNIX mailbox search the forum for "tail -f"

on the other hand, POP3 protocol is simple TCP with handful of commands like USER, PASS, LIST, RETR; so it's a piece of cake to implement what you want in Tcl (the hard part comes if you need to decode MIME etc.)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber