Comments (5)
Does it work without that escapes? Is the result the same with different browsers?
from nagstamon.
I've tested it with every browser at my disposal: IE10, FF22, Chrome 22, opera 12
they all work as I'd expect it: %0d%0a causes a new line in the mail body.
It seem as if nagstamon would prevent the correct parsing of the escape sequences.
If I had to make an educated guess, I'd say the complete action string get's URL encoded before execution and thus breaking the ability to use escape sequences - that would mean: no chance of having new lines in emails.
of course: creating emails this way without new lines works just fine
from nagstamon.
I played with your example and found it not working with &subject but ?subject.
Line 651-656 in Actions.py:
def _URLify(self, string):
"""
return a string that fulfills requirements for URL
exclude several chars
"""
return urllib.quote(string, ":/=?&@")
So yes URLs get cleaned.
I tested Browser URLs without that _URLify() and it works as you expected. Obviously the browsers could URLify the URLS themselves and this method should not be needed here.
from nagstamon.
Thanks for clarifying.
nonetheless thanks for pointing out a syntactical error. the mailto protocol expects a question mark as separator between the first argument (most often the to field) and other arguments. additional parameters are linked with an ampersand.
from nagstamon.
I think your way to send emails should work in future version - next github commit to be exact.
from nagstamon.
Related Issues (20)
- Nagstatmon 3.12.0 not working with Centreon 23.10 HOT 11
- Nagstamon crashes while rechecking an icinga2 service if the servicename contains a % sign HOT 23
- Nagstamon 3.13 does not work with Centreon 23.10.5 HOT 4
- Nagstamon 3.12 not working with Centreon User with ACL HOT 4
- Error since IcingaDB-Web 1.1 HOT 1
- Nagstamon 3.12.0 doesn't work with MacOS 14.0 HOT 2
- New SNAP package realase HOT 2
- latest versions of nagstamon not working with nagios HOT 13
- Authentication error working with check_mk version 2.2 HOT 4
- Nagstamon doesn't open on main screen HOT 2
- Installation on many clients and one config file HOT 3
- Centreon 23.10 - KeyError: 'passive_checks' HOT 8
- Nagstamon crash when adding server livestatus HOT 2
- Nagstamon shouldn't report administratively down hosts (and associated services) HOT 8
- Nagstamon don't want to start on Windows 11 22H2 HOT 1
- No Fedora 39 release HOT 2
- Error message ""KeyError:'passive_checks'" HOT 7
- IcingaDBWeb.py HOT 4
- Converting Problem when using IcingaDB-Web HOT 7
- Can't login to Icinga2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagstamon.