in reply to Complex if/else or case logic
Do you want to tipify some random mail?
Like classify them?
(that assumption was made due to your return things)
If that's the case I suggest some coding system.
Like prime numbers or create alphabet.
In any case you haven't provided enough data.