Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Removing blanks from the number
sp_NewPost Add Reply sp_NewTopic Add Topic
July 9, 2020
4:25 pm
Henk Helmantel
Admin
Forum Posts: 1511
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Markus,

The extraction of the number from the subject line is the same as from the to address, it only accepts numbers without space characters or letters as valid destination numbers. There is no way to change this.

Regards, Henk

July 8, 2020
5:39 pm
Markus
Guest
Guests

Hello Henk,
my question is very similar, so I thought, it's best to post it here next to this?

Our setup is similar: mails are getting in by POP3 but the mobile phone number is extracted from the subject line instead of the "To address".
If some email with a whitespace gets in, Diafaan is splitting them into two messages.
Is the reason for this the same? Or is there any way/workaround/fix to get Diafaan to accepting numbers like this and then fix the number internally with a regex?

Thanks,
Markus

March 20, 2020
2:44 pm
Henk Helmantel
Admin
Forum Posts: 1511
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Florian,

The option 'Extract from To Address' in the 'POP Server' settings of the Email Connector only extracts numbers without any spaces or other non-digit characters from the email. In an email with email address '+49171 xxx xxx xx@sms.service', Diafaan SMS Server will recognize only '+49171' as a potential phone number (the exact regular expression that Diafaan SMS Server uses is '\+{0,1}\d{4,20}').

There is no way to change the regular expression that Diafaan SMS Server uses to detect a phone number.

Regards, Henk

March 20, 2020
12:46 pm
Florian Ring
Guest
Guests

Hello support,

How do you remove blanks from the SMS number? I'm using an email Gateway to send sms and the number is extracted from the "To address". Some users have blanks in their numbers so the "To address" sometimes Looks like "+49171 xxx xxx xx@sms.service". When the email is processed by Diafaan fax Server it tries to send an sms to "+49171". So, is there any possibility to remove the blanks from the number?

I already tried to use the Number Template "regex:[^\d]replace:" but this doesn't have any effect.

Best Regards,
Florian Ring

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1156

Posts: 3946

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1511