Search found 4499 matches

by SorenR
2021-05-13 00:07
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

NO! That was just my script to get your language unicode characters to display properly. :D It was the only way I could replicate your message for testing the CloneMail function. I'm sorry, I didn't realize that at all. After testing, the Clonemail function returns me: <head> <title>Událost č.22476...
by SorenR
2021-05-12 23:57
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

With that being said, I would test Soren's function because it does a lot more than my simple one. I'm running all messages to a small group of accounts thru this to fine tune removal of unwanted newlines... Function HtmlToText(sHTML) If IsNull(sHTML) Then HtmlToText = "" Exit Function End If Dim i...
by SorenR
2021-05-12 18:39
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

This: Function HtmlToText(sHTML) Dim oDoc : Set oDoc = CreateObject("htmlfile") oDoc.open : oDoc.close oDoc.body.innerHTML = sHTML HtmlToText = oDoc.body.innerText End Function is comparable with this: Function HTML2PlainText(strSource) Dim i, strResult, strBreaks, strTabs Const IgnoreCase = True Co...
by SorenR
2021-05-12 17:54
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

IMO, we need to select an approach. @plinka has been working on stripping the tags from the HTML body and just pass the plaintext without markup. I'm suggesting you parse the HTML body and extract relevant fields, then compose a new plaintext message using value subsitiution. Let's try to align to ...
by SorenR
2021-05-12 14:34
Forum: Scripting
Topic: Newbie help :-)
Replies: 6
Views: 59

Re: Newbie help :-)

You probably have to loop trough all recipients and then (most likely) only save those attachments for local users, eg: For oRecipient = 0 to oMessage.Recipients.Count-1 If oMessage.Recipients(oRecipient).IsLocalUser Then accountname = oMessage.Recipients(oRecipient).Address End if Next Is the acco...
by SorenR
2021-05-12 14:05
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

I'm playing around with this a bit. Converting from HTML to Plain Text is usually a pita ... Still need to work on tabs and newlines though. Function HtmlToText(sHTML) Dim oDoc : Set oDoc = CreateObject("htmlfile") oDoc.open : oDoc.close oDoc.body.innerHTML = sHTML HtmlToText = oDoc.body.innerText E...
by SorenR
2021-05-11 09:20
Forum: General discussions
Topic: Problems with new Domain and Account
Replies: 27
Views: 312

Re: Problems with new Domain and Account

Ya know - it is not the first time someone in this forum has come out and claimed that I broke the system by opening SQL Server. I have shared most of the testing I have done to get to the bottom of this. Bottom line - what could I have possibly done to cause three data records to be created correc...
by SorenR
2021-05-11 08:17
Forum: Development & alpha discussions
Topic: upgrade 5.6.8 x86 to 5.7 x64
Replies: 15
Views: 159

Re: upgrade 5.6.8 x86 to 5.7 x64

Interesting... I wonder if Martin did put the "App can handle >2gb address space" flag in 5.7 otherwise you are still limited to 1.7 GB... https://www.hmailserver.com/forum/viewtopic.php?p=160610#p160610 https://stackoverflow.com/questions/3109543/what-to-do-to-make-application-large-address-aware h...
by SorenR
2021-05-10 21:40
Forum: Development & alpha discussions
Topic: upgrade 5.6.8 x86 to 5.7 x64
Replies: 15
Views: 159

Re: upgrade 5.6.8 x86 to 5.7 x64

procomp wrote:
2021-05-10 21:12
Hello, is there any tutorial how to upgrade hmail server from x86 version to x64?

Best regards
5.7 is an Alpha release not suited for public production!
by SorenR
2021-05-10 21:37
Forum: General discussions
Topic: New Account Not Being Fully Created
Replies: 7
Views: 2007

Re: New Account Not Being Fully Created

mattg wrote:
2021-05-10 04:17
Yes, this is your thread from last year

Did you run the SQL as requested by SorenR
Perhaps this is a hint... viewtopic.php?f=7&t=34763
by SorenR
2021-05-10 04:44
Forum: General discussions
Topic: False positive SURBL match
Replies: 26
Views: 5648

Re: False positive SURBL match

Can you please expand on what you are saying here? ...mailserver need to improve to check the return value to match the result. What is happening that is incorrect? I just check,seems no problem.Before,when i use it,sometimes some domains not listed,hmailserver result MATCH,so i do not use SURBL fo...
by SorenR
2021-05-07 19:46
Forum: General discussions
Topic: URLHaus/SecuriteInfo ClamAV sigs anyone?
Replies: 8
Views: 120

Re: URLHaus/SecuriteInfo ClamAV sigs anyone?

SecuriteInfo alone is something like 4.000.000 signatures ... I have disbled the "spam_malware" database... Too many false positives. :roll: I have moved ClamAV and SpamAssassin over to my BackupMX on Windows Server 2019. hMailServer on my Windows Server 2003 like the extra free RAM :mrgreen: Also, ...
by SorenR
2021-05-07 15:19
Forum: General discussions
Topic: URLHaus/SecuriteInfo ClamAV sigs anyone?
Replies: 8
Views: 120

URLHaus/SecuriteInfo ClamAV sigs anyone?

https://urlhaus.abuse.ch/api/#clamav I'm loading their ClamAV signature ... Not every minute as they recommend but every two hours usinf Freshclam Put in Freshclam.conf: DatabaseCustomURL https://urlhaus.abuse.ch/downloads/urlhaus.ndb As a side note I am also using signatures from SecuriteInfo... W...
by SorenR
2021-05-06 08:23
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

My guess is this an a use case for intranet alert messaging where the MUA (printer, router, etc) has been over-built and only a destination address can be specified and not a relay. The MAU wants to resolve the relay from the address, like an MTA would, but the authority doesn't want to have to ass...
by SorenR
2021-05-05 19:32
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet. You need a few things including a real domain , that you own with dns records to match a mail server Please check your knowledge against the 'technical knowledge' at the b...
by SorenR
2021-05-05 13:21
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

Try adding 444-333-222-111-no100.tbcn.telia.com (orwhateveritreallyis) in the [Names] tab in your domain and send an email to johang(a)444-333-222-111-no100.tbcn.telia.com ;-) I just tried it and it worked! Message sent from gmail received at test@pool-1.2.3.4.blah.fios.verizon.net. :mrgreen: Retur...
by SorenR
2021-05-05 11:07
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

while i do agree, and that in my opinion you should be in charge of your own domain and use MX records to point to your mailserver.. however.. in https://www.rfc-editor.org/rfc/rfc5321.html#section-5 "If an empty list of MXs is returned, the address is treated as if it was associated with an implic...
by SorenR
2021-05-04 20:36
Forum: User-submitted tutorials
Topic: HOW TO run Clamwin and have a ClamAV system SERVICE
Replies: 219
Views: 278447

Re: HOW TO run Clamwin and have a ClamAV system SERVICE

You have to question if junk (Porcupine.Junk) detection qualifies as virus...or would spamassassin on itself have marked that message as spam (junk) as well Porcupine.Junk != Virus :!: Regardless the spam/junk/virus ... should not hMailServer AND SpamAssassin receive the same reply from ClamAV? Is ...
by SorenR
2021-05-04 19:55
Forum: User-submitted tutorials
Topic: HOW TO run Clamwin and have a ClamAV system SERVICE
Replies: 219
Views: 278447

Re: HOW TO run Clamwin and have a ClamAV system SERVICE

You may ask WHY do I scan files twice ... Well, no more than 10 minutes ago my server received an email that hMailServer says is clean but SpamAssassin says - X-Spam-Virus: Yes (Porcupine.Junk.40702.UNOFFICIAL(9503bd3aef746a857a71d39bd001380e:1653)) You have to question if junk (Porcupine.Junk) det...
by SorenR
2021-05-04 18:05
Forum: User-submitted tutorials
Topic: HOW TO run Clamwin and have a ClamAV system SERVICE
Replies: 219
Views: 278447

Re: HOW TO run Clamwin and have a ClamAV system SERVICE

This method? Signatures seems to be offered over https:// as well, simply replace http:// with https:// :mrgreen: Yes, this method. Was to lazy to try it myself while writing. But thank you for the test. *thumbsup* EDIT: No, https is not working. Not for us: WARNING: Download failed (60) WARNING: M...
by SorenR
2021-05-04 17:56
Forum: User-submitted tutorials
Topic: HOW TO run Clamwin and have a ClamAV system SERVICE
Replies: 219
Views: 278447

Re: HOW TO run Clamwin and have a ClamAV system SERVICE

I have just had a good looooong look at my installation ... hMailServer 5.6.8 runs on Windows Server 2003 with 2GB RAM ... Yeah! 32 bit :roll: The new ClamAV 103.2 32bit from Netfarm is using just over 1 GB RAM :shock: So........... Killed ClamAV on the 2K3 Server, my BackupMX is running Windows Ser...
by SorenR
2021-05-03 14:22
Forum: User-submitted tutorials
Topic: HOW TO: Easy Set Up DKIM signatures on Hmailserver
Replies: 46
Views: 82512

Re: HOW TO: Easy Set Up DKIM signatures on Hmailserver

M*I*B wrote:
2021-05-03 14:16
SorenR wrote:
2021-05-03 14:07
The only way to solve this is to create a new domain with a new set of DKIM keys and log on to that when sending.
Thanx a lot. I had already figured that out and answered my question completely.
Sometimes you need to trust the little voice inside yourself :mrgreen:
by SorenR
2021-05-03 14:20
Forum: User-submitted tutorials
Topic: HOW TO run Clamwin and have a ClamAV system SERVICE
Replies: 219
Views: 278447

Re: HOW TO run Clamwin and have a ClamAV system SERVICE

Well... News travel fast eh? :mrgreen:
The ClamAV project passed into the hands of Cisco in 2013 after the purchase of the Sourcefire company, which develops ClamAV and Snort.
by SorenR
2021-05-03 14:07
Forum: User-submitted tutorials
Topic: HOW TO: Easy Set Up DKIM signatures on Hmailserver
Replies: 46
Views: 82512

Re: HOW TO: Easy Set Up DKIM signatures on Hmailserver

I'f got an other question: What's about if you drive a domain and use different names of it? I.e. you create a domain like mydomain.com and enter at the TAB "names" i.e. myotherone.com, my-other-one.com, ... ??? DKIM in the (I call it...) Masterdomain works well but it can't working if you send out...
by SorenR
2021-05-01 22:49
Forum: Off-topic discussions
Topic: mailboxvalidator.com
Replies: 15
Views: 312

Re: mailboxvalidator.com

oMessage object has been created with "MAiL FROM" so we have a message.
by SorenR
2021-05-01 22:39
Forum: Off-topic discussions
Topic: mailboxvalidator.com
Replies: 15
Views: 312

Re: mailboxvalidator.com

Perhaps redefine "OnDeliveryFailure()" ?? "OnEventFailure(oMessage, sRecipient, sErrorMessage)" 1: Unknown account 2: Message delivery cancelled during virus scanning 3: Message delivery cancelled during global rules 4: Message delivery cancelled during OnDeliverMessage-event 5: Delivery timeout 6:...
by SorenR
2021-05-01 22:01
Forum: Off-topic discussions
Topic: mailboxvalidator.com
Replies: 15
Views: 312

Re: mailboxvalidator.com

Perhaps redefine "OnDeliveryFailure()" ?? "OnEventFailure(oMessage, sRecipient, sErrorMessage)" 1: Unknown account 2: Message delivery cancelled during virus scanning 3: Message delivery cancelled during global rules 4: Message delivery cancelled during OnDeliverMessage-event 5: Delivery timeout 6: ...
by SorenR
2021-05-01 18:42
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

Thanks Jim but everything is set up correctly in hmail server, I too thought it was something not set correctly, but that is not the case. mikedibella is spot on here, the hmail server (unlike other MTAs I have worked with) expects a hostname to be present in the initial helo command sent to it, if...
by SorenR
2021-05-01 18:09
Forum: Off-topic discussions
Topic: mailboxvalidator.com
Replies: 15
Views: 312

Re: mailboxvalidator.com

"RECEIVED: HELO mailboxvalidator.com" oClient.HELO is available in OnHELO() "RECEIVED: MAIL FROM:<support@mailboxvalidator.com>" oMessage.FromAddress is available in OnSMTPData() Both oClient.HELO and oMessage.FromAddress contain "mailboxvalidator.com" You need to check both subs when you get mail v...
by SorenR
2021-04-30 21:28
Forum: General discussions
Topic: Anti blacklist strategies
Replies: 11
Views: 224

Re: Anti blacklist strategies

Rotating IP....sounds like something a spammer would do once blocked If you operate a legitimate mailserver you won't be worried by this Put his in your "OnSMTPData()" and you'll be surprised how many legit hosts use Round Robin IP's on their MX'es. ' ' Check DNS records. ' a = Split(oMessage.FromA...
by SorenR
2021-04-30 10:43
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

michalhana99 wrote:
2021-04-30 10:27
SorenR wrote:
2021-04-30 10:18

How do you call this function?
I am a complete beginner in this
Rules->RUN fUNCTION->CloneMail
This function does not support that. This function require 4 parameters and running a function from a rule only passes 1 parameter; the message object.

What exactly are you trying to accomplish?
by SorenR
2021-04-30 10:18
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

This has been covered extensively on other threads. The delay is there by design. One poster did have success scripting a function to create a new "clone" message and submit it, which does get sent immediately: https://www.hmailserver.com/forum/viewtopic.php?f=7&t=36017&p=226758&hilit=forwarding+de...
by SorenR
2021-04-28 21:09
Forum: General discussions
Topic: Retries
Replies: 8
Views: 151

Re: Retries

Besides the settings in hMailAdmin -> Settings -> Protocols -> SMTP [Delivery of e-mail] - Number of retries 20 - Minutes between each retry 30 (minutes) I have these in my hmailserver.ini; QuickRetries=10 ; This key tells hmail to override default wait/retry schedule for 1st defined # of tries whic...
by SorenR
2021-04-27 20:28
Forum: Off-topic discussions
Topic: Happy EMOTET day everyone!
Replies: 8
Views: 260

Re: Happy EMOTET day everyone!

Down to 119 banned IP Ranges :mrgreen:
by SorenR
2021-04-26 22:25
Forum: Off-topic discussions
Topic: Happy EMOTET day everyone!
Replies: 8
Views: 260

Re: Happy EMOTET day everyone!

Don't know about you guys but my IPBan's are dropping. I have had a reasonable stable ca. 210 banned ip's for the past 2-3 weeks where most of then being SnowShoe SPAM and GEOIP Blocking (logon attempts). I'm down to 150 since this morning. My logs are beginning to look sane again. I ban SnowShoe SP...
by SorenR
2021-04-26 16:40
Forum: General discussions
Topic: spam management for POP3 and IMAP users
Replies: 18
Views: 326

Re: spam management for POP3 and IMAP users

This I have in my RoundCube webmail.
.
roundcube.png
.
Andreas made some plugins for hMailServer that will work for webhosting on both Windows AND Linux :!:
.
https://github.com/tunis78
by SorenR
2021-04-26 11:19
Forum: General discussions
Topic: spam management for POP3 and IMAP users
Replies: 18
Views: 326

Re: spam management for POP3 and IMAP users

Give people access to hmailserver webadmin. accounts with "user" status can only access their own and have access to client rules.
by SorenR
2021-04-26 11:08
Forum: Off-topic discussions
Topic: Happy EMOTET day everyone!
Replies: 8
Views: 260

Re: Happy EMOTET day everyone!

jimimaseye wrote:
2021-04-26 08:46
Erm...

Doesn't that say 25th day of month 3? So was a month ago. (We are in month 4).

(Not important, just observation).

[Entered by mobile. Excuse my spelling.]
For i=0 to Months.count-1 Then ...
by SorenR
2021-04-26 07:00
Forum: Off-topic discussions
Topic: Happy EMOTET day everyone!
Replies: 8
Views: 260

Happy EMOTET day everyone!

Today is the day that the EMOTET bot network uninstalls itself. When the network was disruptet in January an uninstaller was pushed into the network to release the millions of computers held hostage!

Yes it counts from 0 :mrgreen:
by SorenR
2021-04-26 00:33
Forum: General discussions
Topic: Minidump - Windows Server 2019
Replies: 8
Views: 187

Re: Minidump - Windows Server 2019

dlee5400 wrote:
2021-04-26 00:27
Looking at the log files a bit closer, when hmailserver uses DKIM the error event happens. Any suggestions why that would be?

Thanks,
DAvid
Do the account running hMailServer have access/read rights to the DKIM file?
by SorenR
2021-04-26 00:21
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

This I used in OnError() to capture EMOJI's that was not found by the first one.. Sub FixEMOJIAgain(sDescription) ' ' ixV(0) metadata_accountid ' ixV(1) metadata_folderid ' ixV(2) metadata_messageid ' ixV(3) metadata_dateutc ' ixV(4) metadata_from ' ixV(5) metadata_subject ' ixV(6) metadata_to ' ixV...
by SorenR
2021-04-26 00:18
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

I have previously used this to remove EMOJI's - then I upgraded MySQL to use utf8mb4 :mrgreen: Sub FixEMOJI(oMessage) ' ' With surrogate pairs, a Unicode code point from range U+D800 to U+DBFF (called "high surrogate") ' gets combined with another Unicode code point from range U+DC00 to U+DFFF (cal...
by SorenR
2021-04-25 23:46
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

I have previously used this to remove EMOJI's - then I upgraded MySQL to use utf8mb4 :mrgreen: Sub FixEMOJI(oMessage) ' ' With surrogate pairs, a Unicode code point from range U+D800 to U+DBFF (called "high surrogate") ' gets combined with another Unicode code point from range U+DC00 to U+DFFF (call...
by SorenR
2021-04-25 23:41
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

So this is/was the original subject: X-Spam-Prev-Subject: Restock alert: lage chelsea boots =?UTF-8?B?4p2k77iP?= [PossibleSpam] is added by hmailserver when score > Spam mark threshold [4.5] is added by spamassassin rewrite_header Subject [_HITS_] Subject: [PossibleSpam] [4.5] Restock alert:=?utf-8...
by SorenR
2021-04-25 23:38
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

The form is: "=?charset?encoding?encoded text?="

https://en.wikipedia.org/wiki/MIME#Encoded-Word
by SorenR
2021-04-25 22:47
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

But is it BASE64 encoded? Btw, this is also a bit weird.... Subject: [PossibleSpam] [4.5] Restock alert:=?utf-8?B?IGxhZ2UgY2hlbHNlYSBib290cyDinaTvuI8=?= X-Spam-Prev-Subject: Restock alert: lage chelsea boots =?UTF-8?B?4p2k77iP?= "?utf-8?B?" = utf-8 base64 Try paste it here.. https://www.base64decod...
by SorenR
2021-04-25 22:13
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

Function Base64Encode(ByVal sText) Dim fAsUtf16LE fAsUtf16LE=0 ' Use an aux. XML document with a Base64-encoded element. ' Assigning the byte stream (array) returned by StrToBytes() to .NodeTypedValue ' automatically performs Base64-encoding, whose result can then be accessed ' as the element's tex...
by SorenR
2021-04-25 22:05
Forum: Scripting
Topic: Subject Decoding
Replies: 21
Views: 528

Re: Subject Decoding

RvdH wrote:
2021-04-25 20:26
mmmm.... or does oMessage.EncodeFields = true to make that removal of UFT8 regex work?

Code: Select all

Dim ECFlag : ECFlag = oMessage.EncodeFields
oMessage.EncodeFields = False

'Do stuff with raw headers...

oMessage.EncodeFields = ECFlag
by SorenR
2021-04-24 17:50
Forum: General discussions
Topic: getting error while sending email to office 365 users
Replies: 19
Views: 529

Re: getting error while sending email to office 365 users

amit_2648 wrote:
2021-04-24 17:46
HmailServer version 5.6.8-B2538
If you go to hMailAdmin -> Utilities -> MX-query and paste pnbmetlife.com into form and press [resolve] ?
by SorenR
2021-04-24 17:40
Forum: General discussions
Topic: getting error while sending email to office 365 users
Replies: 19
Views: 529

Re: getting error while sending email to office 365 users

Ooooooohhh .... Which version of hMailServer? > set type=MX > pnbmetlife.com Server: dns.google Address: 8.8.8.8 Non-authoritative answer: pnbmetlife.com MX preference = 0, mail exchanger = pnbmetlife-com.mail.protection.outlook.com > set type=A > pnbmetlife-com.mail.protection.outlook.com Server: d...
by SorenR
2021-04-24 16:33
Forum: Off-topic discussions
Topic: Weird SPF
Replies: 6
Views: 161

Re: Weird SPF

This is my take on how to interpret your log.

%{i} = 37.10.30.19
%{s} = 3422361083-6HZOL8IGANJJA7XKTL9E77EOO.ECN81L17D5GST9OX4FN5OSD6I@mchat.booking.com
%{l} = 3422361083-6HZOL8IGANJJA7XKTL9E77EOO.ECN81L17D5GST9OX4FN5OSD6I
%{o} = mchat.booking.com
%{d} = booking.com
%{h} = mailout-208-r6.booking.com
by SorenR
2021-04-24 16:05
Forum: General discussions
Topic: getting error while sending email to office 365 users
Replies: 19
Views: 529

Re: getting error while sending email to office 365 users

Nope..

Code: Select all

> xxxxxxxx.com
Server:  dns.google
Address:  8.8.8.8

Non-authoritative answer:
xxxxxxxx.com    MX preference = 5, mail exchanger = x9.xxxxxxxx.com
>
by SorenR
2021-04-23 21:02
Forum: General discussions
Topic: Understanding the SSL/TLS ciphers list
Replies: 27
Views: 9170

Re: Understanding the SSL/TLS ciphers list

I have this table.. ip2asn CREATE TABLE `ip2asn` ( `range_start` bigint(20) NOT NULL, `range_end` bigint(20) NOT NULL, `AS_number` varchar(20) NOT NULL, `country_code` varchar(255) DEFAULT NULL, `AS_description` varchar(255) DEFAULT NULL, PRIMARY KEY (`range_start`,`range_end`), KEY `range_start` (`...
by SorenR
2021-04-23 18:44
Forum: General discussions
Topic: Understanding the SSL/TLS ciphers list
Replies: 27
Views: 9170

Re: Understanding the SSL/TLS ciphers list

I get that... All of it... The database was just an alternative to a textfile. What I really wanted to know was how often would I get a TLSv1 connection and if not that often I could easily find it in the log by the timestamp :mrgreen: I had it active for two months. Roughly 85% is TLSv1.2, 13% is T...
by SorenR
2021-04-22 22:04
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Re: Telerivet SMS Gateway

Hmmm...so what could be allowed by IsNumeric() that this code would catch? "\d" equals [0-9] (?:sms\+)(\d+)(?:@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+) Explained: (?:sms\+) = "sms+" non-capturing (\d+) = any digit, any length (?:@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+) = "@domain.tld" not limited to first level d...
by SorenR
2021-04-22 21:50
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Re: Telerivet SMS Gateway

mikedibella wrote:
2021-04-22 21:46
I thought about that but SMS short codes means that the destination number can really be any length.
That's why it is looking for "\d+" => digit any length. :wink:

Sometimes non-capturing groups do come in handy 8)
by SorenR
2021-04-22 21:40
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Re: Telerivet SMS Gateway

Thinking that ... Perhaps ... strRegEx = "(?:sms\+)(\d+)(?:@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)" Set oMatchCollection = oLookup(strRegEx, oMessage.To, True) For Each oMatch In oMatchCollection EventLog.Write( oMatch.SubMatches(0) ) Next Function oLookup(strRegEx, strMatch, bGlobal) On Error Resume Next...