! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Alarm Procedure with redirection (meaning < or >) is Parsed Incorrectly
Status:
CLOSED: FIXED

Comments

Description elijahr 2008-07-08 16:38:58 CEST
I tried to set the Alarm Procedure for an event to something like:
/usr/bin/sendmail some@address.com < /path/to/somemessage.html

This did not work, because only the "/usr/bin/sendmail" part was being run.

When looking at  ~/.local/share/orage/orage.ics, I see that the Alarm procedure has been placed in the saved event as follows:

ACTION:PROCEDURE
ATTACH:/usr/sbin/sendmail
DESCRIPTION:  some@address.com < /path/to/somemessage.html

For some reason, the "Description" part is not passed to /usr/sbin/sendmail.

I get around this easily by writing a shell script, but I wasn't sure if the "Description" part was really supposed to contain parts of the Alarm Procedure to be run, so I thought I would submit a bug.

Thank you.
Comment 1 juha editbugs 2008-07-14 14:47:45 CEST
Yes, the format is as it should be.
The problem is that I am using simple g_spawn_async function, which is not able
to use standard input redirection (<).

I believe you do get the email? but it is empty?

Comment 2 juha editbugs 2008-07-14 19:15:31 CEST
I was not able to find a quick fix for this.
Patches welcomed. The problem is handling
redirection for standard input:
mail -s koe first.last@address < file_tosend.txt
How to get mail to read the file.

I will document this BUG as a limitation as first aid.
Comment 3 juha editbugs 2008-07-20 19:55:24 CEST
Fixed in Orage 4.5.13.9 revision 27355.

Replaced g_spawn_async by linux system, which can handle redirection.
Comment 4 juha editbugs 2009-02-28 18:04:46 CET
fixed in 4.6.0

Bug #4209

Reported by:
elijahr
Reported on: 2008-07-08
Last modified on: 2009-02-28

People

CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information