$darkmode
Elektra 0.11.0
|
This plugin validates email addresses using regular expressions. The plugin does not support the full RFC5321 spec. For more information see Limitations below.
See installation. The package is called libelektra5-experimental
.
`` @section autotoc_md237 Mount
emailplugin to cascading namespace
/tests/email` kdb mount config.dump /tests/email dump email
kdb meta-set spec:/tests/email/noaddr check/email kdb set user:/tests/email/noaddr invalid..address@com
kdb meta-set spec:/tests/email/adr check/email ""
kdb set user:/tests/email/adr test+ kdb get user:/tests/email/adr #> emai l@dev .lib elekt ra.c omtest+ emai l@dev .lib elekt ra.c om
kdb set user:/tests/email/adr invalid..address@com
kdb set user:/tests/email/adr not.@ emai l.com
kdb set user:/tests/email/adr @
kdb rm -rf /tests/email kdb umount /tests/email ```
The plugin only checks email addresses for validity. It is not able to resolve if the host and or check if the address can receive emails. The validation does not completely support the RFC5321. The following valid email addresses are not supported:
(ele)ktra@elektra.io
elektra@elektra.io(io)
"hi@you"@elektra.io
"hi you"@elektra.io
" "@elektra.io
"<\"\".!.#%$@elektra.io
cow@[dead::beef]
1@[23456789]
There is no validation of top level domains and no length check. The following invalid email addresses will be allowed:
valid+part@nonexistenttopleveldomain
1234567890123456789012345678901234567890123456789012345678901234+x@example.com