YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
898 stars 39 forks source link

notifications for large mails not send to ntfy #127

Open AlBundy33 opened 4 months ago

AlBundy33 commented 4 months ago

now that #126 is solved I've tried to use mailrise as smtp for my crontab but it seems that large messages are not send even if overflow is set in url

mailrise.conf

configs:
  "*@*":
    urls:
      - ntfys://ntfy.my.domain/test?overflow=split

test command

dmesg | mailx -S smtp=smtp://localhost:8025 -s test test@localhost

log output is

mailrise-1  | [2024-07-28 19:17:31] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.
mailrise-1  | [2024-07-28 19:17:37] WARNING:apprise:Failed to send ntfy notification to topic 'test': JSON body too large, error=41303.

the error comes from ntfy (see https://github.com/binwiederhier/ntfy/issues/1073) sending the dmesg-output with

dmesg | docker run --rm -i caronc/apprise:latest apprise -vv -t test "ntfy://ntfy.my.domain:9042/test?overflow=split"

works as expected - maybe mailrise has an issue with the overflow-argument?

[edit] seems to be an issue because mailrise uses apprise 1.7.1 - seems to work with apprise 1.8.1. but with latest apprise I get an unsplitted attachment where the end is missing. [/edit]