List appears incorrectly. Corrected.

Was looking at the values of the $messagedata[‘targetlist’] array,
instead of the keys. So the list name of the first list always appeared
in the message prefix.