Finite-temperature correlations in the one-dimensional trapped and untrapped Bose gases