If the Secretary receives any property other than moneys as contemplated by this chapter, the Secretary is authorized in the Secretary’s discretion to sell, assign, transfer, and convey the same, or any interest therein claimed by virtue of such devise, bequest, or gift, for such price and upon such terms as the Secretary deems advantageous (including consent to partition of realty and compromise of contested claim of title) and the Secretary’s assignment, deed, or other conveyance of any such property, executed in the name and on behalf of the United States, shall be valid to pass to the purchaser thereof such title to said property as the United States, beneficially or as trustee of the General Post Fund, may have by virtue of any such devise, bequest, or gift, and the proceedings incident thereto, subject to the conditions, limitations, and provisions of the instruments so executed by the Secretary.