473,804 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it a safe assumption? - email addresses duplicates automatically deleted

I have a string of email addresses with duplicates. like

"ab*@abc.co m; cd*@cde.com; ab*@abc.com"

If I use this string with sendobject, the receiver will get it only once
which is perfect to me. I wonder if it will be the case with other mail
applications than Outlook Express. TIA

(BTW if somebody has code to delete duplicates in a string like this, it
would be appreciated.)

Nov 12 '05 #1
2 2344
You should make sure that the level at which the duplication is ignored is
actually that of the sending application (OE) and not that of the outgoing
mail server (IMAP or SMTP?). It might be that OE *is* sending the duplicate
addresses on to the mailserver, which is then set to ignore them. In that
case (1) it wouldn't matter what email application was being used (2) it
might matter if your application were to be used on a different system,
routing mail through a different server.

HTH,
Bruce Rusl

"Saintor" <sa******@REMOV ETHIShotmail.co m> wrote in message
news:0p******** ************@we ber.videotron.n et...
I have a string of email addresses with duplicates. like

"ab*@abc.co m; cd*@cde.com; ab*@abc.com"

If I use this string with sendobject, the receiver will get it only once
which is perfect to me. I wonder if it will be the case with other mail
applications than Outlook Express. TIA

(BTW if somebody has code to delete duplicates in a string like this, it
would be appreciated.)

Nov 12 '05 #2
On Sun, 21 Sep 2003 17:05:42 -0400 in comp.databases. ms-access,
"Saintor" <sa******@REMOV ETHIShotmail.co m> wrote:
I have a string of email addresses with duplicates. like

"ab*@abc.com ; cd*@cde.com; ab*@abc.com"

If I use this string with sendobject, the receiver will get it only once
which is perfect to me. I wonder if it will be the case with other mail
applications than Outlook Express. TIA

(BTW if somebody has code to delete duplicates in a string like this, it
would be appreciated.)


Where did the string come from? If from a table then surely the
duplicates could be filtered out first?

If not then...
The StrTok function below came as an example from Basic MS-PDS 7.1, I
can't remember what the varDummy bit was for (I might have added that
later for some reason, serves me right for not commenting it). You can
use that in the following code that youi'll have to modify to suit
your needs.

Sub DelDupeAddy()
Dim strAddy As String
Dim strTemp As String
Dim strDeDupe As String

strAddy = "ab*@abc.co m; cd*@cde.com; ab*@abc.com; x@x.com;
y@y.com; x@x.com"

' totally enclose each addy with ";" so we don't confuse
' a@a.com with aa@a.com later on
strDeDupe = ";"
strTemp = Trim(Strtok(str Addy, ";"))
Do While Len(strTemp)
If InStr(1, strDeDupe, ";" & strTemp & ";") = 0 Then
strDeDupe = strDeDupe & strTemp & ";"
End If
strTemp = Strtok("", ";")
Loop
' strip leading and trailing ; and put spaces back
strDeDupe = Replace(Mid(str DeDupe, 2, Len(strDeDupe) - 2), ";", ";
")
Debug.Print strDeDupe
End Sub


Function Strtok(pstrSrce As Variant, strDelim As String, Optional
varDummy As Variant) As Variant
Static intstart As Integer, strSaveStr As String

Dim intBegPos As Integer, intEndPos As Integer
Dim intLn As Integer

On Error GoTo StrTokError
' If first call, make a copy of the string.
If pstrSrce <> "" Then
intstart = 1: strSaveStr = pstrSrce
End If

intBegPos = intstart
intLn = Len(strSaveStr)
' Look for start of a token (character that isn't delimiter).
Do While intBegPos <= intLn And InStr(strDelim, Mid(strSaveStr,
intBegPos, 1)) <> 0
intBegPos = intBegPos + 1
Loop
' Test for token start found.
If intBegPos > intLn Then
Strtok = ""
Exit Function
End If
' Find the end of the token.
intEndPos = intBegPos
Do While intEndPos <= intLn And InStr(strDelim, Mid(strSaveStr,
intEndPos, 1)) = 0
intEndPos = intEndPos + 1
Loop
Strtok = Trim(Mid(strSav eStr, intBegPos, intEndPos - intBegPos))

If IsNull(pstrSrce ) Then
Strtok = Null
End If

' Set starting point for search for next token.
intstart = intEndPos

StrTokExit:
Exit Function
StrTokError:
Resume StrTokExit

End Function

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #3

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

Similar topics

10
2995
by: dave | last post by:
Hello, I'm creating a site that has several contact email addresses. These are vlid addresses, i'm wondering if i can use php to alter these addresses so that spam harvesters can't get them, yet a normal user clicking on them can? Thanks. Dave.
0
2093
by: Valerie Smith | last post by:
Hi, I am looking for an email address management software package that can do the following: 1. Mail Merging / Demerging capabilities... a). I will be adding to my list of email addressses from time to time. I need to make sure that I do not send an email to a person/company that I just sent an email to earlier.
3
2423
by: Alexander Anderson | last post by:
I have a DELETE statement that deletes duplicate data from a table. It takes a long time to execute, so I thought I'd seek advice here. The structure of the table is little funny. The following is NOT the table, but the representation of the data in the table: +-----------+ | a | b | +-----+-----+ | 123 | 234 | | 345 | 456 |
117
11900
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
6
2408
by: Marlene | last post by:
Hi All I have the following scenario, where I have found all the duplicates in a table, based on an order number and a part number (item).I might have something like this: Order PODate Rec Qty Invoice# Item Supplier Status POReceivedDate 570133 03/09/2004 50 0 DMEDIUM L0010 PENDING 03/09/2004 570133 03/09/2004 50 0 DMEDIUM L0010 PENDING 03/09/2004 570133 03/09/2004 50 0 DMEDIUM L0010 PENDING 03/09/2004
3
2104
by: John Rivers | last post by:
Hello, I think this will apply to alot of web applications: users want the ability to delete a record in table x this record is related to records in other tables and those to others in other tables etc. in other words we must use cascade delete to do
1
4273
by: Lyle Fairfield | last post by:
Option Explicit ' requires VBScript to be installed ' (maybe don't give this to your sugnificant other as ' it gets deleted addresses as well as current) ' obvious fixups needed '1. how get wab file location ' further development '1. get names too? ' maybe some WABs are encrypted
16
3526
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for renaming the duplicate records? My thinking was to take the results of the duplicate query, and somehow have it number each line where there is a duplicate (tried a groups query, but "count" won't work), then do an update query to change the duplicate to...
45
4468
by: Dennis | last post by:
Hi, I have a text file that contents a list of email addresses like this: "foo@yahoo.com" "tom@hotmail.com" "jerry@gmail.com" "tommy@apple.com" I like to
0
9710
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.