Easy!
If the link/email field is empty, or does not contain what looks like a valid email address, is just uses the value <data>@<boardname>.
Otherwise, if it detects a legitmate email address (HAH), it uses that.
Well, thats my cheap idea towards it anyway.