473,583 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

brain teaser : third brain needed to work this one out

here's a brain teaser for someone with more skills or at least more
lateral thinking capability than me - done my nut over this one...

have written a list manager in PHP which

a) posts out new web bulletin board messages to registered users.
b) recieves emails and posts them to the bulletin board if they have the
right variables in the subject line
The subject line is created by the script and contains the group ID, the
bulletin board message ID and the date ...
looks a bit like this

Re: 'I like big buts and I cannot lie' -- in Booty Officionardo group
##9+365+2004-08-11##
when users reply it is still in the subject line so the script knows
where to post the response.
works wondefully!

problem is ...

when people have autoresponders turned on they respond with that same
subject line which means we get these stupid 'Im not in right now'
messages posted on the board.
I added some script to ensure that if someone posted twice within 30
seconds no response would go out - ie to stop an infinite loop battle
between my list manager and their auto responder

so the question is ..
how the heck do I work out what is an acutal reply and what is an auto
response?
Jul 17 '05 #1
2 1749
In article <cg**********@p egasus.csx.cam. ac.uk>, brendan wrote:
so the question is ..
how the heck do I work out what is an acutal reply and what is an auto
response?


That *is* a tough one!

I'd suggest doing a checksum of the message body, if it is the same as
the last one, it's likely spam or an autoresponse. This would, of course
only work if the message doesn't contain quoted material.

Another thing you might try is a loop counter in the subject of some
sort. (Checking to see if there are responses to their own response)

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #2
"brendan" <br************ *@srl.cam.ac.uk _nospam> wrote in message
news:cg******** **@pegasus.csx. cam.ac.uk...
problem is ...

when people have autoresponders turned on they respond with that same
subject line which means we get these stupid 'Im not in right now'
messages posted on the board.
I added some script to ensure that if someone posted twice within 30
seconds no response would go out - ie to stop an infinite loop battle
between my list manager and their auto responder

so the question is ..
how the heck do I work out what is an acutal reply and what is an auto
response?


Put the email address in the cc field instead and autoresponders don't
respond to carbon copies?
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
1525
by: James Stroud | last post by:
Hello, I have strings represented as a combination of an alphabet (AGCT) and a an operator "/", that signifies degeneracy. I want to split these strings into lists of lists, where the degeneracies are members of the same list and non-degenerates are members of single item lists. An example will clarify this: "ATT/GATA/G"
2
1811
by: mjweiner | last post by:
This one has been stumping me for several days. I can run a query that returns several different items from several different manufacturers, each with a ranking score. Each manufacturer can have any number of items: Item_Name Manufacturer rank Item 1 Manu_A 82 Item 2 Manu_A 65 Item 3 Manu_A ...
15
2580
by: Chung Leong | last post by:
Here's a little brain teaser distilled from a bug that took me a rather long time to figure out. The two functions in the example below behave differently. The difference is easy to spot, of ocurse. The challenge is correctly explaining why this is so. Why does the second function seemingly corrupt the cloned copy of an object? Sample code:...
3
2097
by: datagal | last post by:
I have a requirement (motivated by a SOX thing) that is just giving me fits. I know it should be easy and I'm probably overthinking it, but I just can seem to find the best way to get where I need to go. I have some payment projection data derived from a huge procedure that I'm dumping into a temp table that looks like looks this: Key ...
95
4259
by: viv342 | last post by:
how can two variables be swapped without using a third variable?
2
3098
RedSon
by: RedSon | last post by:
Given a directed graph of k-nodes such that the last node creates a cycle with any other node determine which node the last node's edge points to using the minimum amount of resources and without having the ability to change the data in the node. Visual: O ---> O ---> O ---> ... ---> O --+ ^ | | ...
0
7895
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8327
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8193
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5374
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3818
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1433
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.