From 256a6682eda16b049f9cb511b09ee1208f788705 Mon Sep 17 00:00:00 2001 From: Oleg Smedyuk Date: Fri, 12 Jan 2024 18:48:22 +0200 Subject: [PATCH] remove debug output --- debian/changelog | 7 ++++++- debian/config | 1 - debian/control | 1 - debian/install | 1 - debian/postinst | 1 - debian/templates | 1 - src/sendmail.py | 1 - 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index b2651a2..339779a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +tg-sendmail (0.3.2) stable; urgency=medium + + * remove extra lines, remove forgotten debug output + + -- Oleg Smedyuk Thu, 12 Jan 2024 18:47:00 +0200 + tg-sendmail (0.3.1) stable; urgency=medium * fix changelog format, update email, gpg @@ -35,4 +41,3 @@ tg-sendmail (0.1.0) stable; urgency=medium * Setup full debian package build -- Oleg Smedyuk Thu, 11 Nov 2021 19:56:19 +0200 - diff --git a/debian/config b/debian/config index 4868237..60c2e3b 100755 --- a/debian/config +++ b/debian/config @@ -10,4 +10,3 @@ db_input high tg-sendmail/chat-id || true db_go exit 0 - diff --git a/debian/control b/debian/control index 2fa4e5a..0bad6d7 100644 --- a/debian/control +++ b/debian/control @@ -20,4 +20,3 @@ Description: drop-in /usr/sbin/sendmail replacement to send mails to Telegram utility that can be used by any system application to send emails to the chat telegram bot. Homepage: https://github.com/conformist-mw/sendmail - diff --git a/debian/install b/debian/install index e15e121..9e2f446 100755 --- a/debian/install +++ b/debian/install @@ -1,4 +1,3 @@ #!/usr/bin/dh-exec src/sendmail.py => usr/sbin/sendmail src/sendmail.ini => etc/tg-sendmail.ini - diff --git a/debian/postinst b/debian/postinst index 7b2560f..25edaa0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -20,4 +20,3 @@ chmod 666 /var/log/tg-sendmail.log sed -i "s%log_path=.*%log_path=/var/log/tg-sendmail.log%" /etc/tg-sendmail.ini exit 0 - diff --git a/debian/templates b/debian/templates index cf4f4ac..411cbf5 100644 --- a/debian/templates +++ b/debian/templates @@ -8,4 +8,3 @@ Type: string Description: Chat ID with the bot. You can skip and fill in manually in `/etc/tg-sendmail.ini`. If you don't know it, the `sendmail --get-updates` command will help. - diff --git a/src/sendmail.py b/src/sendmail.py index 104ca12..e95bf15 100755 --- a/src/sendmail.py +++ b/src/sendmail.py @@ -158,7 +158,6 @@ def send(message, token, chat_id): def send_file(filepath, content, token, chat_id): body = encode_multipart_formdata(filepath, content) - print(body) headers = { 'Content-Type': 'multipart/form-data; boundary=boundary', }