EMAIL2NCID(1)

πŸ“¦
version 1.18 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

email2ncid β€” it converts an email into an NCID message. that's the whole job bestie, no cap ✨

this one lives in the User Contributed Perl Documentation section of the manual, and yes it's giving "your procmail called and it wants a favor" energy πŸ’…


🌸 SYNOPSIS 🌸

email2ncid [--configfile    | -C <filename>]
           [--hostname-flag | -H <0|1>]
           [--help          | -h]
           [--man           | -m]
           [--notify        | -N <0|1>]
           [--ncidserver    | -n <[host][:port]>]
           [--test          | -t <1-9>]
           [--version       | -V]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the email2ncid gateway is literally the main character here: it takes the contents of an email and sends them to the NCID server as one single line. one line. that's it. slay πŸ’–

you call it from a .procmailrc file when an email contains this line:

Subject: NCID Message

the email2ncid gateway also has an option to send only the email subject line to the NCID server instead of the whole thing. you call it from a .procmailrc file when the email address or name matches on the email From: line. iykyk πŸŽ€

the email has to be in either plain text, or HTML and plain text β€” no other formats, sorry bestie, the vibe check said no πŸ™ˆ

and the output of email2ncid? a one line NCID message sent to an NCID server. periodt ✨


✨ OPTIONS ✨

  • -C, --configfile <filename> β€” says which configuration file to use. and the cute part? the program will still run if a configuration file is not found. she's resilient πŸ’…
  • -H <0|1>, --hostname-flag <0|1> β€” when the hostname flag is set to 1, the IDENT string sent to a server will include the hostname along with the program name.

Default: 0

  • -h, --help β€” shows the help message and exits. baby's first flag 🫢
  • -m, --man β€” displays the manual page and exits. hi you're literally reading it rn 😭
  • -N <0|1>, --notify <0|1> β€” this option sends a message to NCID containing only the subject line instead of the email contents as one line. it's a notification of some type:
    • visitor arrived at a gate in a gated community
    • an important email arrived
  • -n <[host][:port]>, --ncidserver <[host][:port]> β€” specifies the NCID server. the port may be specified by suffixing the hostname with :<port>.

input must be <host:port> or <host>, or <:host>

not me being picky about the exact shape of this string πŸ’€ get it wrong and it will not be the vibe.
  • -t <1-9>, --test <1-9> β€” test mode connects to the server and displays some information and the message. it does not send the message to the server. set the level to a higher number for more information. levels range from 1 to 9, but not all levels are used.
test = 1: show some variables and generated message
test = 2: additionally show 2 or 3 lines returned by server
test = 3: additionally show the email message

Default: no test mode

  • -V, --version β€” displays the version. tell me who you are queen πŸ‘‘

🌈 REQUIREMENTS 🌈

the NCID server

http://ncid.sourceforge.net/ncid/ncid.html

a dynamic DNS service

a Mail Transport Agent (MTA)

exim, postfix, sendmail, etc.

firewall

forward port 25 TCP/UDP to the computer running the MTA πŸ”₯

procmail

$HOME/.procmailrc must be created or updated to call email2ncid.

run the following command to automate this whole process for you (she's helpful like that):

ncid-setup email2ncid

Perl

perl 5.6 or higher, perl(Config::Simple)


πŸŽ€ FILES πŸŽ€

prefix3=/etc/ncid/email2ncid.conf
$HOME/.procmailrc

πŸ’œ SEE ALSO πŸ’œ

email2ncid.conf.5, ncid-email2ncid-setup.1, ncidd.8, ncid.conf.5, ncid_gateways.7


and that's the whole page bestie!! this was email2ncid(1) from perl v5.42.0, dated 2025-08-06 β€” go forth and convert those emails, ily, drink water, bye πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from