Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifications for large mails not send to ntfy #127

Open
AlBundy33 opened this issue Jul 28, 2024 · 0 comments
Open

notifications for large mails not send to ntfy #127

AlBundy33 opened this issue Jul 28, 2024 · 0 comments

Comments

@AlBundy33
Copy link

AlBundy33 commented Jul 28, 2024

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 binwiederhier/ntfy#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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant