LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2005, 02:39 PM   #1
AquamaN
Member
 
Registered: Oct 2002
Location: Ohio, USA
Distribution: OS X 10.4.8, Ubuntu 6.10
Posts: 146

Rep: Reputation: 15
Class project Idea


Before you think this is a thread about me wanting code for my project, don't worry, I'm not into having others do my work..

So get this, I'm in a software engineering course and our professor is not the brightest in the world... or at least in my opinion. Our webmail services were having difficulties over this past summer with mail not being delivered or if it was, it was malformed or delivered extremely late. This is what we have to do by the end of the semester:

Write a cross platform app (not java, but I think perl, maybe c++) that for both a client and a server to measure the performance of our mail system.. But this is how he wants it to work:

Sit in the background and when the person clicks "Send" IN webmail (Not a POP client...) he wants it to pick up all the info from the emails header and then have the server sitting on the UNIX box that will compare the header info and checksum from the client...

The only thing is that I have no clue how to actually code something like this and NO ONE else does in our class either... including the professor. I was thinking the only way was to have some sort of packet sniffer grab the email, deconstruct it and read the header and have the same on the server... then use our app to benchmark the times.

So, yeah, any thoughts on how we could accomplish this?

-aqua
 
Old 09-21-2005, 02:46 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The only way I can see this working is to md5sum the fields that you submit in the webmail interface, do the same on the server side with the webmail application and compare them.

The problems I see with this:
1) You can't really check the headers on the client and the server since they will only be generated in full on the webserver itself.
2) I would doubt if the problem you are experiencing is between the browser and webserver.
3) Your time would probably be much better spent working out where the slow/broken point is and fixing that.
 
Old 09-21-2005, 02:49 PM   #3
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
yea, thats a tough one. without hacking the source for the webmail, i'm not sure how you could tell when the OK button has been pushed.

otherwise, it seems like your going to have to have something listen for the OK button pressed event, and that would have to occure in the code for the webmail user interface.
 
Old 09-21-2005, 02:49 PM   #4
AquamaN
Member
 
Registered: Oct 2002
Location: Ohio, USA
Distribution: OS X 10.4.8, Ubuntu 6.10
Posts: 146

Original Poster
Rep: Reputation: 15
I agree, I think this project is way to ambitious for us to take on... considering I think I'm one of two people in my group with any knowledge of network programming.
 
Old 09-21-2005, 03:16 PM   #5
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
wish i could be of more help
 
Old 09-22-2005, 12:04 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think you'd have to interrogate the mailserver (eg sendmail, qmail) queues at each end... awkward.
Frankly, just knowing when you sent the msg and when it arrived you can do by hand (for a small num of msgs), but it won't tell you why it takes so long.
You'd have to do serious logging at each stage/machine on the path to find the problem, although if each mail system adds extra hdrs with eg GMT timestamps, that may do it.
To test the network, just write your own tcp client/server combo on any port eg 8000.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best database for a class project Burgin Programming 5 10-08-2004 02:56 PM
Graduation project idea 0x0000h Linux - Software 5 10-01-2004 12:01 PM
Help Picking two servers (class project)+ Q Quatttro General 1 04-25-2004 11:16 AM
Idea for a project with linux(es) - What's possible? kanzure Linux - Newbie 1 03-14-2004 11:59 AM
An idea for a great project qanopus Linux - General 17 10-17-2002 03:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration