It’s sort of a silly question.
To customise emacs beyond clicking around in ‘customise’ you need to write elisp. If you learn little elisp then you can only customise it using other people’s code, if you learn a lot of it then you can write an mua.
You decide where you want to be on that spectrum.
This is not a useful plan. Building eMacs produces a binary that depends at runtime on loads of libraries that you haven’t installed on the outer system.
Just don’t bother doing this.