Thunderbird Extensions
Apple - mac
Web iPhoto Access
Donation
Make a donation to help WiPhA development

Search




Preferences

 Count of members 29 members


Users online

( nobody )
Visits

 147710 visitors

 12 visitors online

Private
forum.gifForum - Yamb - Topic #19


Topic #19 doesn't work fine with growl
    by loopkin - visitor
05/11/2005 @ 19:01
Anonymous
i had to add this script, and call it from yamb:

#!/bin/sh

/usr/local/bin/growlnotify -n Thunderbird -a Thunderbird -t "Nouveau Mail"  -m "De: $­2  Sujet: $­1"
Post an answer




Answer #1 by Globs - rank ( 44 messages )
05/11/2005 @ 20:42
Globs
I don't really see the difference with the Growl script which I suggest here, except the use of the "-n" option. What do you really mean by "doesn't work fine" ?
Site web Globs Write to Globs Post an answer

Top

Answer #2 by loopkin - visitor
05/11/2005 @ 22:42
Anonymous
well, first, thanx for your YAMB, it's great !
second, in the beginning i didn't see your script, and frankly the name isn't well chosen, since "growlnotify" is the name of the CLI to growl
third, why don't you integrate all the scripts directly to YAMB ?
fourth, the inline documentation of YAMB tells that 1=Subject, 2=From, ... and thus o­ne can expct the string "1", "2", ... to be replaced by the subject, from, ... in the command line entered just before... a quick look at yamb's code told me that it wasn't obviously the case...
fifth.. yes, the missing -n wink
Write to loopkin Post an answer

Top

Answer #3 by Globs - rank ( 45 messages )
05/11/2005 @ 23:34
Globs

Dixit...
the name isn't well chosen, since "growlnotify" is the name of the CLI to growl


Oh, sorry not to have enough imagination. If you can propose an intelligent name which integrates well in the context and respects the pattern used for all scripts, I'll be glad to use ittongue.

Dixit...
why don't you integrate all the scripts directly to YAMB ?


Because I don't know all notification systems existing in the universe, nor do I intend to. The extension is designed in a way you can use any external system, so there is no limit to what you can do. But of course, this requires you to work a little bit.

Dixit...
the inline documentation of YAMB tells that 1=Subject, 2=From, ... and thus o­ne can expct the string "1", "2", ... to be replaced by the subject, from, ... in the command line entered just before


OK, I could remove 1=, 2=,... and just write that the parameters come in this order. Anyway, what did you expect ? You are calling a script which receives parameters. How did you want it to receive them ? The solution you expected is just not possibleeek. This is also  why I provided some notification  scripts: as examples.

Dixit...
the missing -n


You did not tell me if this -n option is required or not. I haven't Growl installed, so I can't test it, but the current script has been provided by a user, so I suppose the option is not necessary. Do you confirm?
Site web Globs Write to Globs Post an answer

Top

Answer #4 by Bastian - visitor
01/02/2006 @ 18:54
Anonymous
Hi Folks,
somehow neither of the scripts, you both described works for me. I installed growlnotify in /usr/local/bin and Growl, as well as the yamb extension. All in the most recent versions. In TB, i use the 1.5 release.
The scripts, I put into my home-folder and made them executable. Pressing "Test" in the extension prefs works, TB is registered in Growl and displays the right message. But on automatic check, TB reports new messages, but Growl keeps quiet. Any ideas?

Thanks
Post an answer

Top

Answer #5 by Globs - rank ( 108 messages )
01/02/2006 @ 19:01
Globs
You coud try an other notifier to see if this is a problem with Growl.

I've had exactly the same symptoms with iAlert. The test was OK, but no real alert. I looked in the console and saw that iAlert was reported to crash. This was the clue to begin investigating in the good direction: my iAlert script was buggy.
Maybe you have a similar problem with your script ?
Site web Globs Write to Globs Post an answer

Top

Answer #6 by Bastian - visitor
01/02/2006 @ 19:47
Anonymous
Thanks for the quick reply!

I just tried iAlert with your iAlertNotify.sh. Exactly the same behaviour, TB receives new mail, but iAlert keeps quiet. Testing works though, which it does as well, when I start the script from the terminal (worked for Growl, too).
So exactly the same behaviour in Growl and iAlert, could it be that I need a trunk or branch nightly from TB, rather than the 1.5 release?

Thanks again.

Btw. I am using 10.4.4
Write to Bastian Post an answer

Top

Answer #7 by Globs - rank ( 111 messages )
01/02/2006 @ 20:24
Globs
No, not at all,

I 've had it working since 1.5 beta 1. And I also run OSX 10.4.4 .
You first have to find out wether your script is called when you receive a mail.
Add an echo at the beginning of  the script and look in the console if you see the message.


#!/bin/sh
echo "John Doe has been here"
subject="$­1"
...



I have no other idea to investigate this.

Site web Globs Write to Globs Post an answer

Top

Answer #8 by Bastian - visitor
03/02/2006 @ 12:16
Anonymous
Hi, it's me again,

after playing around, I do not assume that it is a script problem. Right now i am using the script below:

    #!/bin/sh

    echo "Growl was called at `date`"
    /usr/local/bin/growlnotify -n Thunderbird -a Thunderbird -t "Nouveau Mail" -m "De:$­2 Sujet:$­1"


After saving the script, everything worked exactly on-­e. And now only testing calls up growl, but upon a new mail check by TB, TB again announces the mail, but the script is not called.

Strange eek

Thanks for the help though and for Yamb, of course
Greetings
Post an answer

Top

Answer #9 by Globs - rank ( 117 messages )
04/02/2006 @ 00:02
Globs
Would you have other extensions installed ?
Could this be a problem with your TB account/preferences ?

You could try to create a new profile, with no extension, define one mail account a test this.
Site web Globs Write to Globs Post an answer

Top

^ Top ^

GuppY - http://www.freeguppy.org/    Site powered by GuppY v4.5.14 © 2004-2005 - CeCILL Free License   GuppY - http://www.freeguppy.org/

Document generated in 0.19 second