Closed Thread Icon

Topic awaiting preservation: pop3 webmail msn messenger notifications (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12748" title="Pages that link to Topic awaiting preservation: pop3 webmail msn messenger notifications (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: pop3 webmail msn messenger notifications <span class="small">(Page 1 of 1)</span>\

 
smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted posted 05-17-2003 19:43

Hi,

Just an idea I had, I have seen extensions for msn messenger that give you notifications when new mail is received in accounts other than you registered hotmail account. So how is that possible, and would it be possible to include something which does that when I come to build my php/perl webmail app for one of my pop3 accounts online?

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 05-19-2003 23:53

On that note .. if anyone knows of any cool scripts(pref perl) off hand that do any form of interaction with icq/msn/irc please post links

edit: oh and sorry, no I can't help :P I aint the most experienced with the server end.

[This message has been edited by Hugh (edited 05-19-2003).]

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-20-2003 01:38
quote:
On that note .. if anyone knows of any cool scripts(pref perl) off hand that do any form of interaction with icq/msn/irc please post links



Yeah, I'd like to see some of these two. I'd love to do opt-in notifications via IM.

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 05-20-2003 09:39

You mean something like this? (PHP)
<BLOCKQUOTE><FONT face="Verdana, Arial">code:</font><HR><pre>
function sendICQ($uin, $name, $email, $subject, $body)
/* function for sending an pager message to a ICQ UIN
* @param:
* $uin = target UIN
* $name = sender's name
* $email = sender's email
* $subject = pager subject
* $body = pager content
*/

{
$name = urlencode($name);
$email = urlencode($email);
$subject = urlencode($subject);
$body = urlencode($body);

$icqURL = "http://wwp.mirabilis.com/scripts/WWPMsg.dll?subject=$subject&to=$uin&from=$name&fromemail=$email&body=$body";

if((fopen($icqURL , "r")))
{
return "the message was sent successfully";
}

else
{
return "an error occured.";
}

fclose($icqURL);
}

function checkICQStatus($uin, $type)
/* gets the icq status for a ICQ UIN
* @param:
* $uin = target UIN
* $type = return typ, 1 = text, 2 = values

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-20-2003 10:31

I've a mail-to-icq script lying around somewhere... but it relies on the receiver having 'emailexpress' enabled in their icq.
And you can't send *any* url with it (I suppose the messages get dropped as spam).
Tell me if you want me to look where I put it...

smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted posted 05-20-2003 13:57

i know icq is extremely popular, but i'm more interested in msn/windows messenger - being as it is very wide spread amongst users who maybe aren't so technically knowledgeable to hate M$ and go get ICQ. I'm pretty sure microsoft distributes dev kits or at least some guidance notes on scripting plugins for messenger from it's website, but I was hoping to get a real world opinion and solution from someone with an independent view. I know that the third-party plugin 'messenger plus' can check pop3 accounts but it has to be set to check them on a time basis - say every ten minutes or so. I was hoping more for a solution that would enable my pop3 account to tell my messenger when new mail is received etc. by using some php/perl type program on my webserver. I don't want to be having to check my pop3 account from my local computer every 10 minutes to see if I have mail, this isn't nice to my connection. I want my server to handle all the stuff like that.

visit my CryoKinesis Online Gallery

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-20-2003 19:03

neither perl nor php can do 'push' by default... at least not if you don't have your own box that cronjobs them regularly...

checking an empty pop3 box is about 250-500 bytes (depending on username, password and so on). You won't get cheaper than that.
Implementing a push solution is hardly worth the effort.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-20-2003 20:55

Microsoft has their news alert features for MSN Messenger, but it's not cheap.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-21-2003 05:39

DMS - I get an error when attempting to use the script that you listed.

code:
Warning: fopen("http://wwp.mirabilis.com/scripts/WWPMsg.dll?subject=Byte+me%21&to=23113317&from=Bill+Bob&fromemail=billy%40whatever.com&body=This+is+my+body+-+worship+it%21.", "r") - Success in /path/to/file/sendicq.php on line 9



The message DOES get sent, however. Also, it appears you cannot have a web address in the message.

Line 9 is

code:
if((fopen($icqURL, "r"))){





[This message has been edited by Pugzly (edited 05-21-2003).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-21-2003 05:56

fopen returns a pointer to a stream, not a true success or fail message.

try changing that line to

if(($fp = fopen($icqURL, "r")))

and see if that gets rid of the warning.



.:[ Never resist a perfect moment ]:.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-21-2003 05:58

On another note. I have written small deamons in perl that run 24/7 without the use of a cronjob (just a loop with a sleep point).



.:[ Never resist a perfect moment ]:.

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 05-21-2003 09:48

Pugzly, as I said, I didn't write it and tested it for the first time right now.
And yup, I'm getting the error as well, plus it doesn't even take www.dmsproject.com as plain text...

Tried Bit's fix but it didn't help.
It needs some tweaking that's for sure, but it's a step in the right direction.
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-21-2003 10:36

bit: yeah, that would work, if you had shell access to the server.
Any decent host kills webactivated scripts after a while.


It would not be possible with php, though. PHP dies after no longer than 24 hours, I believe to have read somewhere in the documentation.

so long,

Tyberius Prime

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-22-2003 00:24

True my perl deamons ran on servers I control.

Hmm try rewriting the script using fsockopen That may help (I'd do it, it's an easy job but I have to get to a class).




.:[ Never resist a perfect moment ]:.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-22-2003 23:18

Haven't tried the fsockopen. The other method DOES send the message, but gives the screen output warning as well. And, as soon as you include a URL in the body, it doesn't work at all.

« BackwardsOnwards »

Show Forum Drop Down Menu