Patent ID: 8533273

Claim:
A communication control method executed by a communication relay apparatus for relaying communication messages exchanged between a terminal and a server, the communication relay apparatus having a communication data storage for storing data regarding relayed communication messages, said method comprising: relaying a first communication message transmitted from the terminal to the server, the first communication message being a query message for querying presence of new mail; storing the first data regarding the first communication message in the communication data storage; relaying a second communication message transmitted from the server to the terminal in response to the first communication message; storing second data regarding the second communication message in the communication data storage; relaying a third communication message transmitted from the terminal to the server, the third communication message being a query message for querying presence of new mail; receiving a fourth communication message transmitted from the server in response to the third communication message; determining, on the basis of the first data and the second data stored in the communication data storage, whether the fourth communication message satisfies a first predetermined condition, where the first predetermined condition is that the fourth communication message matches a stylized reply message in repeated communications in which a query message and the stylized reply message are exchanged repeatedly; stopping relay of the fourth communication message and transmitting the third communication message to the server when the fourth communication message satisfies the first predetermined condition; and continuing relay of the fourth communication message failing to satisfy the first predetermined condition.