Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2003, 05:32 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jtdang77 Send a message via MSN to jtdang77 Send a message via Yahoo to jtdang77
Default Infinite Loop Detection

Hi All,

New to this forum and I am looking for help to write an
algorithm to detect infinite loop. Below is the situation:

Data
-----------------------
Field A Field B
joe reuben
reuben dave
dave josh
row man
john row
row john
-----------------------

In this situation all data in FIELD A will go to FIELD B.
Here field A can mean like an email alias and field
B is the email address to forward to within a 1 domain (@domain.com).

So from here can see that there is an infinite loop
at john -> row -> john or vice versa row->john->row
where as joe->reuben->dave->josh is not an infinite loop
because whoever alias josh belongs to will receive the
email (assuming a different box, and josh does not forward to
anyone else)

So given this two fields from a db table, how can I
write an algorithm to ensure all aliases and email forward
does not create and infinite loop and stop keep forwarding in
circle.

Thanks for your help,

John

Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
infinite loop smilesmita Pro PHP 1 December 21st, 2007 10:44 AM
problem of infinite loop sarah lee ASP.NET 1.0 and 1.1 Basics 19 December 14th, 2006 09:26 AM
problem getting out of infinite loop and incremtin method VB How-To 0 April 28th, 2006 11:45 PM
Infinite timer? acdsky VBScript 1 June 17th, 2004 02:59 PM
How to Write a Infinite Loop Detection jtdang77 Classic ASP Professional 1 October 15th, 2003 03:44 AM



All times are GMT -4. The time now is 11:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.