Re: [opensuse] Email signature command execution help

2006-11-16 Thread Hylton Conacher(ZR1HPC)

Basil Chupin wrote:

Scott Leighton wrote:


On Sunday 12 November 2006 9:07 pm, Basil Chupin wrote:


I missed previous posts in this thread, but in Mozilla/TB under Account
Settings you have the item Attach this Signature where you can specify
the file to attach as the sig. Wouldn't selecting the file containing
the output from the executable is what is required here?



Not with the same effect. Something external would have to
trigger the executable to fire off so it would output to the file 
being attached.

For example, Kmail lets one specify an executable script
to execute, then it uses the output as the signature. Many
people put the output of uptime into their sig, so their
sig contains the exact uptime at the time that they replied
to the message with the sig on it.
With your suggestion, to achieve the same effect one
would have to have this 'signature' script running in the
background, say with cron, every minute or so dumping
the output to a text file that is the file specified as the
signature attach file in Mozilla/TB. Course, this assumes
that Mozilla/TB doesn't cache that file, in which case
even the cron example wouldn't work.



Ah, OK.

I think what you may be looking for is this extension for TB:

Signature 0.4.0.4.200610221528

which you will find by going to-

https://addons.mozilla.org/search.php?cat=36app=thunderbirdappfilter=thunderbirdtype=E 

Tnx Basil,

I'll have a look there.
--

Using SuSE 9.2 Professional with KDE and Mozilla 1.7.13
Linux user # 229959 at http://counter.li.org



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-16 Thread Hylton Conacher(ZR1HPC)

Darryl Gregorash wrote:



snip


So, apart from the cosmetics, using a named pipe as the signature file
and overwriting the signature are identical. OK, Hylton has two methods
now to get what he wants in his signature :-)

mmm, Tnx all and it would seem esp houghi.

--

Using SuSE 9.2 Professional with KDE and Mozilla Messenger 1.7.13
Linux user # 229959 at http://counter.li.org



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread houghi
On Tue, Nov 14, 2006 at 12:48:39AM -0600, Darryl Gregorash wrote:
 On 2006-11-13 22:57, Basil Chupin wrote:
 
 
  It doesn't cache the sig file. You can write a new one, put its name
  in the Attach this Signature box, pretend to write a new message and
  the new sig will be at the bottom on the msg.
 
 So, apart from the cosmetics, using a named pipe as the signature file
 and overwriting the signature are identical. OK, Hylton has two methods
 now to get what he wants in his signature :-)

Yes. But cron will do it each time interval (e.g. each minute) even if it
is not needed. This means if you send two mails within that minute, you
have the same signature. If you don't send an email, there is unneeded
activity.

With fifo you will only get a new signature when there is a request.

houghi
-- 
To have a nice mailinglist experience, follow the guidelines below:
 Please do not toppost.Please turn off HTML
 Read http://en.opensuse.org/Opensuse_mailing_list_netiquette
 Read http://www.catb.org/~esr/faqs/smart-questions.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread Darryl Gregorash
On 2006-11-14 01:59, houghi wrote:

 With fifo you will only get a new signature when there is a request.

   
OK, this is what I cannot figure out how to do.

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread Theo v. Werkhoven
Tue, 14 Nov 2006, by [EMAIL PROTECTED]:

 On 2006-11-14 01:59, houghi wrote:
 
  With fifo you will only get a new signature when there is a request.
 

 OK, this is what I cannot figure out how to do.

Very simply put:
$ mkfifo sig

$ l sig
prw-r--r--  1 theo users 0 Nov 14 22:29 sig|

$ while  [ 1 ];do uptime sig;done 

$ read sigline  sig

$ echo $sigline
10:31pm up 3:44, 5 users, load average: 0.05, 0.22, 0.16

Every time you read from sig you get an updated line, or lines if
you feed more in the fifo.

Theo
-- 
Theo v. WerkhovenRegistered Linux user# 99872 http://counter.li.org
ICBM 52 13 26N , 4 29 47E. +  ICQ: 277217131
SUSE 9.2   +   Jabber: [EMAIL PROTECTED]
Kernel 2.6.8   +   See headers for PGP/GPG info.
Claimer: any email I receive will become my property. Disclaimers do not apply.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread Darryl Gregorash
On 2006-11-14 15:33, Theo v. Werkhoven wrote:
 $ mkfifo sig

 $ l sig
 prw-r--r--  1 theo users 0 Nov 14 22:29 sig|

 $ while  [ 1 ];do uptime sig;done 

 $ read sigline  sig

 $ echo $sigline
   
OK, but that is hardly useful in the context of this thread. Since I
cannot simply tell Mozilla/Seamonkey/Thunderbird to insert the result of
running uptime, I can hardly tell it to execute read sigline.

The end result must be a file, and I do not know if a named pipe
qualifies as a file in mozilla's language. If it does, then I can just
insert sig as the signature file, but I am not prepared to go through
the exercise. I will leave that to Hylton, if he is interested.

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread Theo v. Werkhoven
Tue, 14 Nov 2006, by [EMAIL PROTECTED]:

 On 2006-11-14 15:33, Theo v. Werkhoven wrote:
  $ mkfifo sig
 
  $ l sig
  prw-r--r--  1 theo users 0 Nov 14 22:29 sig|
 
  $ while  [ 1 ];do uptime sig;done 
 
  $ read sigline  sig
 
  $ echo $sigline

 OK, but that is hardly useful in the context of this thread. Since I
 cannot simply tell Mozilla/Seamonkey/Thunderbird to insert the result of
 running uptime, I can hardly tell it to execute read sigline.

I thought the questioneer's problem was that he didn't know how to
use FIFos. That was what my answer was for.

 The end result must be a file, and I do not know if a named pipe
 qualifies as a file in mozilla's language. If it does, then I can just
 insert sig as the signature file, but I am not prepared to go through
 the exercise. I will leave that to Hylton, if he is interested.

So will I.

Theo
-- 
Theo v. WerkhovenRegistered Linux user# 99872 http://counter.li.org
ICBM 52 13 26N , 4 29 47E. +  ICQ: 277217131
SUSE 9.2   +   Jabber: [EMAIL PROTECTED]
Kernel 2.6.8   +   See headers for PGP/GPG info.
Claimer: any email I receive will become my property. Disclaimers do not apply.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-14 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Tuesday 2006-11-14 at 17:07 -0600, Darryl Gregorash wrote:


 The end result must be a file, and I do not know if a named pipe
 qualifies as a file in mozilla's language. If it does, then I can just
 insert sig as the signature file, but I am not prepared to go through
 the exercise. I will leave that to Hylton, if he is interested.

It does not work with Pine, I was curious enough to test it.

  [EMAIL PROTECTED]:~ mkfifo signature.autoupdate
  [EMAIL PROTECTED]:~ l signature.autoupdate
  [EMAIL PROTECTED]:~ while  [ 1 ];do uptime  signature.autoupdate ; done 
  [1] 22026
  [EMAIL PROTECTED]:~ cat signature.autoupdate
   12:59am  up 12 days  1:43,  25 users,  load average: 0.32, 0.66, 0.66
  [EMAIL PROTECTED]:~ cat signature.autoupdate
   12:59am  up 12 days  1:43,  25 users,  load average: 0.29, 0.65, 0.66


Then I setup pine to use the signature.autoupdate file:

  Set Signature   = signature.autoupdate


The result you can see below: empty (two empty lines below the dashes).


- -- 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFFWlsytTMYHG2NR9URAk7SAJoCSSdu8yAIUEM7M1fLQV6CVYFaTQCfWGpN
g5fSYboAn4OrXCoXG+VJBg8=
=K3GS
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-13 Thread Darryl Gregorash
On 2006-11-13 01:42, houghi wrote:
 On Sun, Nov 12, 2006 at 09:29:01PM -0800, Scott Leighton wrote:
   
 With your suggestion, to achieve the same effect one
 would have to have this 'signature' script running in the
 background, say with cron, every minute or so dumping
 the output to a text file that is the file specified as the
 signature attach file in Mozilla/TB. Course, this assumes
 that Mozilla/TB doesn't cache that file, in which case
 even the cron example wouldn't work.
 

 No, use a 'named pipe'. [man mkfifo]
 That will run a command as if it were a file (like ~/.signature) or run a
 file as if it were a command.
Maybe I am missing something. The best I can do is to make a fifo,
mkfifo -m permissions fifoname, set Mozilla/TB to read that as the
signature file, then create a shell script, scriptname, and finally
periodically run

path/scriptname  fifoname

Are you sure this is no different than simply running a cron to
overwrite the signature file, if Mozilla/TB caches what it reads? (Not
that it should be doing any such caching at all, but lately I've begun
to wonder about some of the things it does do :-) )

Still, this is something that should be integral to the useragent, not
something that has to be faked in any way, particularly in such a
non-trivial way. I doubt such options are even open to Windows users.

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-13 Thread Darryl Gregorash
On 2006-11-13 22:57, Basil Chupin wrote:


 It doesn't cache the sig file. You can write a new one, put its name
 in the Attach this Signature box, pretend to write a new message and
 the new sig will be at the bottom on the msg.

So, apart from the cosmetics, using a named pipe as the signature file
and overwriting the signature are identical. OK, Hylton has two methods
now to get what he wants in his signature :-)

-- 
Personally, I don't give a rat's behind about bragging my uptime to anyone, but 
who am I to criticize? ;-)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread Darryl Gregorash
On 2006-11-10 08:11, Hylton Conacher(ZR1HPC) wrote:
 Hi,

 I have a file in /home that I use as a signature file. Whatever I
 write in there is displayed as my signature.
Since you are using Mozilla, AFAICT that is your only choice. Mozilla
does not seem to have an option to sign a message with the results of an
executable file.

There may be add-ons or extensions that will give that option, but I
have yet to run across any.

-- 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread Basil Chupin

Darryl Gregorash wrote:

On 2006-11-10 08:11, Hylton Conacher(ZR1HPC) wrote:

Hi,

I have a file in /home that I use as a signature file. Whatever I
write in there is displayed as my signature.

Since you are using Mozilla, AFAICT that is your only choice. Mozilla
does not seem to have an option to sign a message with the results of an
executable file.

There may be add-ons or extensions that will give that option, but I
have yet to run across any.


I missed previous posts in this thread, but in Mozilla/TB under Account 
Settings you have the item Attach this Signature where you can specify 
the file to attach as the sig. Wouldn't selecting the file containing 
the output from the executable is what is required here?


Cheers.


--
This week, on Tuesday night, in an ironic turnaround, Iraq brought 
regime change to the U.S.



   Amy Poehler



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread Scott Leighton
On Sunday 12 November 2006 9:07 pm, Basil Chupin wrote:

 I missed previous posts in this thread, but in Mozilla/TB under Account
 Settings you have the item Attach this Signature where you can specify
 the file to attach as the sig. Wouldn't selecting the file containing
 the output from the executable is what is required here?


Not with the same effect. Something external would have to
trigger the executable to fire off so it would output to the 
file being attached. 

For example, Kmail lets one specify an executable script
to execute, then it uses the output as the signature. Many
people put the output of uptime into their sig, so their
sig contains the exact uptime at the time that they replied
to the message with the sig on it. 

With your suggestion, to achieve the same effect one
would have to have this 'signature' script running in the
background, say with cron, every minute or so dumping
the output to a text file that is the file specified as the
signature attach file in Mozilla/TB. Course, this assumes
that Mozilla/TB doesn't cache that file, in which case
even the cron example wouldn't work.

 Scott

-- 
Id est mihi, id non est tibi! 
POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/
Linux 2.6.13-15.12-default x86_64
SUSE LINUX 10.0 (X86-64)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread Basil Chupin

Scott Leighton wrote:

On Sunday 12 November 2006 9:07 pm, Basil Chupin wrote:

I missed previous posts in this thread, but in Mozilla/TB under Account
Settings you have the item Attach this Signature where you can specify
the file to attach as the sig. Wouldn't selecting the file containing
the output from the executable is what is required here?



Not with the same effect. Something external would have to
trigger the executable to fire off so it would output to the 
file being attached. 


For example, Kmail lets one specify an executable script
to execute, then it uses the output as the signature. Many
people put the output of uptime into their sig, so their
sig contains the exact uptime at the time that they replied
to the message with the sig on it. 


With your suggestion, to achieve the same effect one
would have to have this 'signature' script running in the
background, say with cron, every minute or so dumping
the output to a text file that is the file specified as the
signature attach file in Mozilla/TB. Course, this assumes
that Mozilla/TB doesn't cache that file, in which case
even the cron example wouldn't work.


Ah, OK.

I think what you may be looking for is this extension for TB:

Signature 0.4.0.4.200610221528

which you will find by going to-

https://addons.mozilla.org/search.php?cat=36app=thunderbirdappfilter=thunderbirdtype=E

Cheers.



--
This week, on Tuesday night, in an ironic turnaround, Iraq brought 
regime change to the U.S.



   Amy Poehler



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread Basil Chupin

Scott Leighton wrote:

On Sunday 12 November 2006 9:07 pm, Basil Chupin wrote:

I missed previous posts in this thread, but in Mozilla/TB under Account
Settings you have the item Attach this Signature where you can specify
the file to attach as the sig. Wouldn't selecting the file containing
the output from the executable is what is required here?



Not with the same effect. Something external would have to
trigger the executable to fire off so it would output to the 
file being attached. 


[pruned]

You may also want to have a look at extensions called-

Time Stamp

Signature Switch

Quicktext

Cheers.



--
This week, on Tuesday night, in an ironic turnaround, Iraq brought 
regime change to the U.S.



   Amy Poehler



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] Email signature command execution help

2006-11-12 Thread houghi
On Sun, Nov 12, 2006 at 09:29:01PM -0800, Scott Leighton wrote:
 With your suggestion, to achieve the same effect one
 would have to have this 'signature' script running in the
 background, say with cron, every minute or so dumping
 the output to a text file that is the file specified as the
 signature attach file in Mozilla/TB. Course, this assumes
 that Mozilla/TB doesn't cache that file, in which case
 even the cron example wouldn't work.

No, use a 'named pipe'. [man mkfifo]
That will run a command as if it were a file (like ~/.signature) or run a
file as if it were a command.



houghi
-- 
To have a nice mailinglist experience, follow the guidelines below:
 Please do not toppost.Please turn off HTML
 Read http://en.opensuse.org/Opensuse_mailing_list_netiquette
 Read http://www.catb.org/~esr/faqs/smart-questions.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse] Email signature command execution help

2006-11-10 Thread Hylton Conacher(ZR1HPC)

Hi,

I have a file in /home that I use as a signature file. Whatever I write 
in there is displayed as my signature.


In the signature, as you can see below, I would like to have the current 
machine uptime displayed when the message is put into the Outbox before 
being sent. I thought that just entering the #!/bin/bash would make it a 
script. Heck, I even made the file execuatable by the user(me).


How can I get a command, like 'uptime, to execute in a text file 
whenever the text file is used? Should I leave out the # in the 
#!/bin/bash command?


How can I achieve this and which man pages would assist?

Tnx
--
#!/bin/bash
echo =
echo Using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2
echo Linux user # 229959 at http://counter.li.org;
uptime
echo =

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]