Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will this work?
Message
From
31/05/2023 04:39:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01686685
Message ID:
01686687
Views:
54
>Hi there,
>
>one functionality of my application ist to receive emails and process them. Sometimes the provider sends these mails twice and I want to prevent that these are processed.
>I think about saving to values in a table, the first line of the mail and a checksum of the mail body calculates by sys(2007).
>Before processing the content I would look up these values in the table and if found, skip this mail.
>Does this make sense or are there better ways?

Sounds like a good approach to me. You would probably need to ensure the "duplicate" message body doesn't have anything like a unique ID, date/time stamp etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform