-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wednesday, August 12 at 11:01 AM, quoth Jan-Herbert Damm:
> Learning programming makes me think signature-scripting could be a 
> nice homework.

Sure - it's really easy.

> I have googled for signature-scripts but with unsatisfying results.
>
> One idea i had: execute "fortune" and writing the output into a ".signature" 
> file, which then gets used for mails.
>
> Are there other/smarter approaches?

Well, I wouldn't use fortune to write into a file. Since you can use 
the output of a program as your signature, there's no need to use 
temporary files. All you need to do is end the signature setting with 
a pipe character (|) and mutt will execute it as if it were a command; 
for example:

     set signature="/usr/bin/fortune|"

Personally, I don't use fortune. I use my quotes for other things, 
including a webmail quote-of-the-day, so I keep my quotes in an SQL 
database that gets queried by my signature generator script. Part of 
the fun with that, then, is ensuring that the formatting is 
email-friendly (e.g. lines less than 76 characters long, all ascii, 
etc.).

Anyway, good luck!

~Kyle
- -- 
I have not failed. I've just found 10,000 ways that won't work.
                                                       -- Thomas Edison
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKgscTAAoJECuveozR/AWeazoP/R69YH66l0om1/UIo0cXYfHQ
/NwPX+Bf06/z7ORvGAcTfRfdbxiipPMzxu+wC3VA2pSVuuP9wst2D/wvx/rL6tEL
ZSRmrhRmUPcKfS79A8S7LL6bJEe259+7KmiQTsRkW8PwxwR48+9G22ad7uzlK2xv
WGDqYCGnpjlW+dzUhcdNqVFyThEzB/vHu1enFFkCYBHCF29wLBKLQ4imMYnrFrIq
d09rQf9r6N+QASKv4bJwFFC1QVPu2X0BDYqc4XMjbNAZyOcOWacqN9dfYpsXRn7s
q6KydaUQP7zxnxIV+nyAuMfzML5anTGskqdxANGiyR3te9jRx4CszSPYYCXdh1nH
kqszJc9vgYII6TLGUBoHDbeq/Vg/U6EjFylqGjrWLqT6xmoDDeI25R9i6PQRDd+v
Uj3JdlDePKig+AxCcrmqlcLNLh7pa4vdlzWbIlykzMd+agep1+/dHSyExKEYQLoI
s1X3tfjtmoTUCf6RqkdUKpREviU0mYM7BXngakm1pPFx0F2fduNvh3+EgvajDsYQ
PbjtlEBKvzFNS019hzNw10Nw81TTyc/qFXxKbZEX5X9Uj0nEUDNsLfP0PQMn5KmU
mmfbjrP332lUZQiELeIPsimM4EPKTWz4J8zC7U6CQgR2uAJmcH3TJOYVgQPukr4G
ZXXWB57hA29o9/rjHJ9d
=Ep2P
-----END PGP SIGNATURE-----

Reply via email to