![]() |
Pages (4): [1] 2 3 4 Next » Show all 69 posts from this thread on one page |
TiVo Community Forum Archive 1 (http://archive.tivocommunity.com/tivo-vb/index.php)
- TiVo Underground (http://archive.tivocommunity.com/tivo-vb/forumdisplay.php?forumid=8)
-- Tivo POP3 Client (TPOP) (http://archive.tivocommunity.com/tivo-vb/showthread.php?threadid=69479)
Tivo POP3 Client (TPOP)
I've done it... I've just finished writing an email client for the Tivo (POP3 Only)., called TPOP. The attached file has a bogus .zip at the end, it's just a .tar.gz. Install this in a writiable area on your hard drive (it keeps track of state so that you can run it alongside a full-featured email client). run it from /etc/rc.sysinit by adding "/var/hack/bin/tpopd.tcl" (no ampersand needed) (or wherever you put it) run "tpopd.tcl -h" to give you a list of options. There is a .conf file for storing user and password, how often to check messages, whether or not to delete them from the server, etc. Messages are stored in the Tivo Messages area. Oh, yeah, this is released under the GPL and all that. I hope I didn't forget anything. Enjoy....
Douglas Mayle
douglas@networkhackers.com
Ahhh missing file
It looks like the file didn't attach. Here I go again...
*Attachment removed, see end of thread, or http://www.networkhackers.com/tpop *
Curious - What do you use this for?
__________________
The United Soviet Socialists Republic
Aggressively moderated for success in protecting our advertising revenue
Reading my email without having to get up from the TV. It's a daemon that runs in the background and polls a POP mail server every so often and downloads the mail into the Tivo message store.
I guess you aren't deleting the mails from the server, and if you want to respond, you just wander over to the PC. I would go nuts deleting all the spam from my Tivo, but thats just me! (and the volume of spam I get, I guess)
Not poo poo-ing your work in any way.
__________________
The United Soviet Socialists Republic
Aggressively moderated for success in protecting our advertising revenue
I don't delete them with TPOP, but the script handles that if you want. And you're right. thankfully, I've managed to keep myself relatively spam free...
This would be a great module for Tivo Control Station. I guess I could just setup TCS to turn it on and off. Hmm...
Oh, Thanks Dpop!
-Moat
The source site for TPOP is up. It's incredibly basic, but you can view the help file there, etc. http://www.networkhackers.com/tpop
quote:
Originally posted by Moat
This would be a great module for Tivo Control Station. I guess I could just setup TCS to turn it on and off. Hmm...
Oh, Thanks Dpop!
-Moat
I noticed that about killing TCL. I've been looking for a graceful way to signal the daemon. There's always the possibilty of a lock file, or something like that..., but I wanted something easier.
trying to get tpopd.tcl working....
keep getting this back ...
./tpopd.tcl
bash-2.02# can't read "mbody": no such variable
while executing
"message_store $mfrom $msubject $mbody 1"
(procedure "parse_messages_and_store" line 54)
invoked from within
"parse_messages_and_store [check_mail]"
(file "./tpopd.tcl" line 503)
---------------------------------------------------
I have confirmed my settings ... (I've XXX'd out for privacy)
bash-2.02# ./tpopd.tcl -d
bash-2.02#
******************
* T POP Options *
******************
*config-file | /var/hack/bin/tpopd.conf
*----------------|
*server | XXX.XXX.XXX.XXX
*----------------|
*port | 110
*----------------|
*user | XXX
*----------------|
*password |XXX
*----------------|
*intervel | 600000
*----------------|
*delete messages | ON
---------------------------------------------------
what am I doing wrong? Tivo Ver3.0 SA
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
Try changing the lines:
set result1 [string compare "text/plain;" [string range $mcontenttype 0 10]]
set result2 [string compare "multipart/alternative;" [string range $mcontenttype 0 21]]
To:
set result1 [string compare {[tT][eE][xX][tT]/[pP][lL][aA][iI][nN];} [string range $mcontenttype 0 10]]
set result2 [string compare {[Mm][Uu][Ll][Tt][Ii][Pp][Aa][Rr][Tt]/[Aa][Ll][Tt][Ee][Rr][Nn][Aa][Tt][Ii][Vv][Ee];} [string range $mcontenttype 0 21]]
and see if that helps. (Unfortunately, Tivo ships with TCL 8.0, which doesn;t allow for case insensitve string compare, and I think you're getting MIME info in all caps.)
I've included the changes in the zip file below (and this time it is a real zip file)
*Attachment removed, see end of thread, or http://www.networkhackers.com/tpop *
quote:
Originally posted by dpop
I've included the changes in the zip file below (and this time it is a real zip file)
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
Ahh, got it... You're receiving MIMEless email, and I forgot to to account for that. All of my email (even the simple, single part stuff) mas MIME tagged, and so I left out the default case. Here's the update.
*Attachment removed, see end of thread, or http://www.networkhackers.com/tpop *
quote:
Originally posted by Hi8
Not sure if that is the problem?
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
@ shouldn't be a problem for a username. if the -d is displaying the username correctly, then your program is sending it. I'm working on verbose logging, but I probably won't be finished until next weekend. I'm pretty sure it's just the mail content at this point. I'm gonna update the script to also include an option for saving a trace for me to figure out what's up, mebbe later tonight. (Try the fix for MIMEless email for now)
quote:
Originally posted by dpop
Ahh, got it... You're receiving MIMEless email, and I forgot to to account for that. All of my email (even the simple, single part stuff) mas MIME tagged, and so I left out the default case. Here's the update.
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
dpop ...
thanks again ... this really will come in handy.
(notice my signature?)
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
not DELETING
dpop
working great but it's not deleting the messages on the server, after it picks them up. Hence I continue to get multiple copies each pickup-cycle.
it does reflect that delete is "ON" when I check with the -d switch
__________________
~Hi8
(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250
I'm working on the trace addendum, it'll be done in ~30 minutes...
| All times are GMT. The time now is 01:35 PM. | Pages (4): [1] 2 3 4 Next » Show all 69 posts from this thread on one page |
Powered by: vBulletin Version 2.2.8
Copyright © Jelsoft Enterprises Limited 2000 - 2002.
(C)opyright - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not affiliated with TiVo Inc.