mailrise icon indicating copy to clipboard operation
mailrise copied to clipboard

notifications for large mails not send to ntfy

Open AlBundy33 opened this issue 6 months ago • 0 comments

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]

AlBundy33 avatar Jul 28 '24 19:07 AlBundy33