diff options
| author | J08nY | 2017-07-17 21:21:38 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-17 21:21:38 +0200 |
| commit | 2703337c99eb62cb1ae8b516789f41732a4171d7 (patch) | |
| tree | eb42c6ab55466352db20f35e7e44a73510147d21 /src/mailman_pgp/utils/email.py | |
| parent | 20317c3444e0b11d8d4676dec23c34222d4d7340 (diff) | |
| download | mailman-pgp-2703337c99eb62cb1ae8b516789f41732a4171d7.tar.gz mailman-pgp-2703337c99eb62cb1ae8b516789f41732a4171d7.tar.zst mailman-pgp-2703337c99eb62cb1ae8b516789f41732a4171d7.zip | |
Diffstat (limited to 'src/mailman_pgp/utils/email.py')
| -rw-r--r-- | src/mailman_pgp/utils/email.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman_pgp/utils/email.py b/src/mailman_pgp/utils/email.py index 4d08d8a..4541313 100644 --- a/src/mailman_pgp/utils/email.py +++ b/src/mailman_pgp/utils/email.py @@ -16,7 +16,10 @@ # this program. If not, see <http://www.gnu.org/licenses/>. """""" +from public import public + +@public def copy_headers(from_msg, to_msg, overwrite=False): """ Copy the headers and unixfrom from a message to another one. @@ -32,4 +35,4 @@ def copy_headers(from_msg, to_msg, overwrite=False): if key not in to_msg: to_msg[key] = value if to_msg.get_unixfrom() is None: - to_msg.set_unixfrom(from_msg.get_unixfrom())
\ No newline at end of file + to_msg.set_unixfrom(from_msg.get_unixfrom()) |
