diff options
Diffstat (limited to 'src/mailman_pgp/pgp/utils.py')
| -rw-r--r-- | src/mailman_pgp/pgp/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/utils.py b/src/mailman_pgp/pgp/utils.py index cc0bda0..0946e3f 100644 --- a/src/mailman_pgp/pgp/utils.py +++ b/src/mailman_pgp/pgp/utils.py @@ -15,8 +15,18 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see <http://www.gnu.org/licenses/>. +"""Various pgp and email utilities.""" + def copy_headers(from_msg, to_msg): + """ + Copy the headers and unixfrom from a message to another one. + + :param from_msg: The source `Message`. + :type from_msg: email.message.Message + :param to_msg: The destination `Message`. + :type to_msg: email.message.Message + """ for key, value in from_msg.items(): if key not in to_msg: to_msg[key] = value |
