A long-time aide to Hillary Clinton sought to map out her funeral — and Bill Clinton’s — in 2010 because “planning is best done when they are still with us,” according to an email released on Wednesday by Judicial Watch.

Capricia Marshall, who was chief of protocol for the State Department when Hillary Clinton served as secretary of state, wrote to Huma Abedin, Doug Band and Cheryl Mills on Feb. 23, 2010, saying “everytime someone significant passes, I am flooded with requests” about the Clintons’ arrangements.

“Planning is necessary and best done when they are still with us,” she wrote to top Clinton aide Abedin.

“As well, Huma, I would make the same suggestion to you — for her it will be a little different … And once affirmed it will be very hard for someone to deny the type of ceremony she wanted — as well I understand that the President can request certain arrangements for her that she/her rep cannot (ie if you want the motorcade to go through DC — stop somewhere),” Marshall wrote in one email.

She told the aides she needed to contact the military to prepare for the funerals — “as Protocol has a lot to do with planning, notification etc.”

Judicial Watch, a government watchdog group, released 1,184 pages of emails on Wednesday.

Another message from March 2010 shows the level of tension that existed among some Clinton advisers when Band asked Abedin to follow through with a request by Chelsea Clinton to set up a White House tour for a Haitian-American sailor from the USS Comfort.

“I don’t want to get cross wise with cdm [Cheryl Mills] on anything Haiti related,” Abedin replied.

Three minutes later she wrote again.

“Have you met Cheryl Mills,” Abedin asked in all caps about Hillary Clinton’s former chief of staff when she was secretary of state. “You have no idea.”

Band replied, “Good point.”

“She will kill the tour if she find out i set it up …,” Abedin wrote back.

“Wow,” Band replied.