A message in a bottle delivered to a Confederate general during the American Civil War has been deciphered, 147 years after it was written.