Line 893 in osticket/upload/include/class.thread.php:
// Mail sent by this system will have a predictable message-id
// If this incoming mail matches the code, then it very likely
// originated from this system and looped
$info = Mailer::decodeMessageId($mailinfo['mid']);
if ($info && $info['loopback']) {
// This mail was sent by this system. It was received due to
// some kind of mail delivery loop. It should not be considered
// a response to an existing thread entry
if ($ost)
$ost->log(LOG_ERR, _S('Email loop detected'), sprintf(
_S('It appears as though <%s> is being used as a forwarded or fetched email account and is also being used as a user / system account. Please correct the loop or seek technical assistance.'),
$mailinfo['email']),
So it looks like the mail fetcher to the GMAIL account is finding a message with a particular "MID" and triggering the log.
My hypotheses is that since I don't delete messages from the inbox some old email is triggering this. Let's see if I can dig deeper...