Instructions on how to add an IP address to an email.
Open ./your_admin_folder/themes/default/template/controllers/customer_threads/helpers/view/message.tpl
add:
<br>IP: {long2ip($message.ip_address)}
after:
<span class="message-date"> <i class="icon-calendar"></i> - {dateFormat date=$message.date_add full=0} - <i class="icon-time"></i> {$message.date_add|substr:11:5}</span>
result: