Solved

hotmail javascript dhtml question

Posted on 2004-10-01
8
260 Views
Last Modified: 2010-04-17
Hi,
After being logged into hotmail, I'd like to know what variables would have to be submitted to what url in order to delete a message.  It would also be helpful to know if it's a get or a post that's required.  Thanks.
0
Comment
Question by:jodyglidden
  • 5
  • 3
8 Comments
 
LVL 4

Assisted Solution

by:itcnbwise
itcnbwise earned 500 total points
ID: 12205174
I don't think it's possible.  I think the hotmail server checks to see what IP the referer comes from, and if it's not a Hotmail IP, it won't activate the delete function, it just shows the message.  For example, this is the link to delete a Hotmail email:

http://by8fd.bay8.hotmail.msn.com/cgi-bin/getmsg?msg=MSG1096625328.50&start=704766&len=6757&msgread=1&imgsafe=n&curmbox=F000000001&a=4f3a5a6fb805d676ffaf28f7778993ac#

First of all, note you must know the message ID (in this case it's MSG1096625328.50).  But if I try to activate this URL, it will not delete the email.  But if I follow this link from within hotmail (i.e. on their IP) it deletes it.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205290
Would it not be working because you are missing some form variables that get set during the button click?  I noticed that there is a

subm(

function that takes 4 parameters.... "delete",0,1,event.  I'm not sure what the value of event is or what the subm function might be doing.  I know the subm function is in a .js file which I went to but the subm function seems pretty complicated and I'm having a hard time to follow it.

Thanks for your help so far
0
 
LVL 4

Accepted Solution

by:
itcnbwise earned 500 total points
ID: 12205313
I looked at that JS file too, then realized there must be a simpler way than by trying to reverse engineer all that javascript on the checkboxes.  So I just click on one email, then copied the shortcut for the delete button.  Now, that button may have a few hidden parameters, I don't know, I really didn't look into that much detail.  But that's what you should investigate - it seems easier than trying to decipher that js code on the email listing page.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205792
When I right click on that link and copy it, paste it into the above url and hit enter it doesn't do anything.  Also it has a # sign at the end.  I believe by looking at the code in that page that this is actually masked with javascript as well.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 4

Expert Comment

by:itcnbwise
ID: 12205800
Look at my first post - the link doesn't do anything because you are not being refered by a hotmail IP
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205823
Then how would you explain the complicated subm function and everything?  I would agree with you if you had a full account of what's being done in that javascript function.  Plus, in my experience, all of the other hotmail pages can be gotten to directly.. you just have to submit the right variables.  I'm quite sure we're just missing variables.  

As an alternative, if nobody happens to be able to tell what the javascript is doing, a method to programmatically click the delete button using the microsoft webbrowser control would be just as good.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207028
Also, you'll notice on the email message that all buttons, delete, forward, etc seem to have the same link.  This tells us it must be a fake link.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207149
Nevermind, I figured it out myself.  I'll give out some points for trying...
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now