Hanle effect from a dipolar magnetic structure: the case of the solar corona and the case of a starV. BommierA&A, 539 (2012) A122DOI: https://doi.org/10.1051/0004-6361/201118245