A Boston woman will serve time in federal prison for the armed robberies of U.S. Postal Service letter carriers in Mattapan and Hyde Park in 2022, the U.S. Attorney said.