When received facsimile data is TSI-transferred, an image forming
apparatus selects one box from a table which includes at least one of a
box to which a number of a transmission source is assigned as a name and
a box to which a part of a number of a transmission source and a symbol
attached to the front or last of the number are assigned as a name. In
the case where the selected box has the name in which the symbol is added
to the front of the part of the number, a last number of a number
indicated by data included in the TSI, which has the number of digits
identical to those of the part of the number, is compared with the part
of the number for all digits. As a result of the comparison, in the case
where they match each other, the apparatus transfers the received
facsimile data according to transfer setting of the box.