aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/utils.py
diff options
context:
space:
mode:
authorJ08nY2017-06-26 22:12:09 +0200
committerJ08nY2017-06-26 22:12:09 +0200
commitbdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4 (patch)
treefca178aa7abef2acb4dadf5262711cc8dcd5da55 /src/mailman_pgp/pgp/utils.py
parente506b790be863e58930aefb7473cd815a967a581 (diff)
downloadmailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.tar.gz
mailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.tar.zst
mailman-pgp-bdb0ec76d9b7b9a7e6956af5fe15d05c4c73ada4.zip
Diffstat (limited to 'src/mailman_pgp/pgp/utils.py')
-rw-r--r--src/mailman_pgp/pgp/utils.py10
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