Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

The message Prowl received just show one line and the newline part is gone #62

Open
tortoo opened this issue Jul 10, 2021 · 5 comments
Open

Comments

@tortoo
Copy link

tortoo commented Jul 10, 2021

I installed the regrowl version by snicker. Don’t know if it’s the problem of gntp or the problem of regrowl. The information received by Prowl can only display one line, and the line break part is gone. The newline part has been removed in the Notification-Text of debug info and only the rest was forwarded to Prowl. It is suspected that gntp has a problem with the processing of line breaks after receiving the information.

@kfdm
Copy link
Owner

kfdm commented Jul 10, 2021

I have not really worked on this library in many years, especially since Growl itself has been retired, 1

However, if you want to investigate yourself, you need to keep in mind that the GNTP protocol uses \r\n for lines, so as long as your line uses \n for new line, I think it should probably work.

@tortoo
Copy link
Author

tortoo commented Jul 10, 2021

@kfdm Great thanks for your reply! I know Growl is a bit old, but I think it is still strong. 😹
I test it just now, but the part after the line break is still missing.

[00:00:00] INFO -- : Sending Growl notification 'test': 'abc
123'

And I received:
image

Notification Packet:
===================================
GNTP/1.0 NOTIFY NONE SHA512:xxx
Notification-Callback-Context-Type: type
Notification-ID: xxx
Application-Name: HuginnGrowl
Notification-Text: abc

[00:00:00] INFO -- : Sending Growl notification 'test': 'abc\n123'

And I received:
image

Notification Packet:
==================================
GNTP/1.0 NOTIFY NONE SHA512:xxx
Notification-Callback-Context-Type: type
Notification-ID: xxx
Application-Name: HuginnGrowl
Notification-Text: abc\n123

@kfdm
Copy link
Owner

kfdm commented Jul 10, 2021

Is the prowl part something you wrote? I don't see anything prowl related in the regrowl library. Currently I don't have this library, regrowl, or growl installed, so it would be a little challenging for me to debug it without a more detailed explanation of your setup and how everything is connected together.

@tortoo
Copy link
Author

tortoo commented Jul 10, 2021

I didn't write anything. Wait for me to speak slowly. 😸
I send messages with Growl Agent of huginn. Huginn is a very popular project on Github. After deployed huginn, you can see the Growl Agent on a page something like this:
image
And I installed regrowl version by snicker on the same server. The regrowl related to Prowl was written by him. You mention it here in 2014. 😹

After deployed those above your Prowl can receive messages send by Growl Agent.

@kfdm
Copy link
Owner

kfdm commented Jul 10, 2021

I'm sorry, I don't really have any of this setup to test, and have not used it myself in many years 🙇

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

No branches or pull requests

2 participants