this should be fine with one mail from sender, but if you have more mail then one it might get little tricky, contact me if you need any paid support, good luck
Create a text file in which there will be data settings (apple, pear, orange). Specify the path to this file in the BAS program settings.
In the BAS program, create a field in which to specify the digit which setting to use.
The digit will match the line in the file 1.