Complex sentence: In 1841, Holmes was appointed as the United States attorney for the Maine district, a post he held until his death in Portland on July 7,1843.
Split into simpler sentences: In 1841, Holmes was appointed as the United States attorney for the Maine district. He served as U.S. attorney until his death in Portland on July 7,1843.