TiVo Community Forum Archive 1 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)


Posted by dpop on 07-27-2002 11:27 PM:

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


Posted by dpop on 07-27-2002 11:29 PM:

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 *


Posted by Zirak on 07-28-2002 01:01 AM:

Curious - What do you use this for?

__________________
The United Soviet Socialists Republic
Aggressively moderated for success in protecting our advertising revenue


Posted by dpop on 07-28-2002 01:29 AM:

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.


Posted by Zirak on 07-28-2002 01:42 AM:

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


Posted by dpop on 07-28-2002 01:55 AM:

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...


Posted by Moat on 07-28-2002 03:25 AM:

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


Posted by dpop on 07-28-2002 03:42 AM:

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


Posted by Zirak on 07-28-2002 02:09 PM:

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



Before you go to the effort of writing the module, try killing it. Killing TCL often panics the tivo.


Posted by dpop on 07-28-2002 02:39 PM:

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.


Posted by Hi8 on 07-28-2002 02:55 PM:

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


Posted by dpop on 07-28-2002 03:06 PM:

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 *


Posted by Hi8 on 07-28-2002 04:28 PM:

quote:
Originally posted by dpop

I've included the changes in the zip file below (and this time it is a real zip file)




thanks, but it does the same thing.... uploaded the last(.zip) ftp'd chmod 755 and ran it ...

still the same result. the one thing that is unique in my login (username) is that my mail account requires an "@" as part of the accountname for example: tivo@domainname.com - is required for my account name. Not sure if that is the problem?

thanks for the quick reply...

__________________
~Hi8


(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250


Posted by dpop on 07-28-2002 04:35 PM:

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 *


Posted by Hi8 on 07-28-2002 04:39 PM:

quote:
Originally posted by Hi8



Not sure if that is the problem?




it does seem to effect the response.... I tried another POP3 account that I have, and it doesn't return that after executing. however ... so far no mail coming in.

is there a way to force a pickup? do you log any transactions?

thnx

__________________
~Hi8


(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250


Posted by dpop on 07-28-2002 04:47 PM:

@ 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)


Posted by Hi8 on 07-28-2002 04:48 PM:

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.



dpop!

that did it! BINGO!!! works with the account I wanted (the one with the "@" in the accountname)

COOL!!! works like a charm!

__________________
~Hi8


(1) Sony SAT T-60
(3) Hughes DVR-40
(1) Hughes HR10-250


Posted by Hi8 on 07-28-2002 04:51 PM:

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


Posted by Hi8 on 07-28-2002 04:59 PM:

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


Posted by dpop on 07-28-2002 05:35 PM:

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.