| View previous topic :: View next topic |
| Author |
Message |
redshift Voice
Joined: 12 Dec 2005 Posts: 1 Location: Philadelphia
|
Posted: Mon Dec 12, 2005 12:31 pm Post subject: POP3 email script search |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Dec 12, 2005 7:57 pm Post subject: |
|
|
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 |
|
 |
Ehlanna Voice
Joined: 21 Jul 2005 Posts: 15
|
Posted: Mon Dec 12, 2005 8:06 pm Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Dec 12, 2005 9:47 pm Post subject: |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 13, 2005 11:35 pm Post subject: |
|
|
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 |
|
 |
|