1. A method for generating a machine-readable code utilizable for at least one of naming an electronic document or determining one or more attributes of a message, the method comprising: receiving an input for defining one or more areas of interest in the electronic document; determining one or more location identifiers corresponding to each of the one or more areas of interest; generating the machine-readable code for the electronic document, wherein the machine readable code includes information pertaining to the one or more location identifiers; and embedding the machine-readable code in the electronic document, wherein the machine-readable code is utilizable for determining each of the one or more location identifiers in the electronic document, wherein text at each of the one or more location identifiers is recognized, wherein the recognized text at the determined one or more location identifiers is used for at least one of naming the electronic document or determining the one or more attributes of the message, wherein the above steps are performed by a processor.