Re: Signature convention
- From: Peter Williams <peter newton cx>
- To: Mark Brown <broonie tardis ed ac uk>
- Cc: balsa-list gnome org
- Subject: Re: Signature convention
- Date: Tue, 14 Mar 2000 23:27:34 -0500
On Tue d. 14 Mar 2000 kl. 11:50:33 Mark Brown wrote:
> Most clients insert the sig-sep - some do so unconditionally (mutt does
> or did this IIRC) which breaks if you've already got one in your
> .signature.
>
It would be a piece of cake to check to see if the signature already has
the dashes, and if it's enabled. Like:
if( sig_dashes_enabled ) {
if( strncmp( "-- \n", sig_string, 4 ) == 0 ||
strncmp( "--n\", sig_string, 3 ) == 0 ) {
prepend_dashes();
}
}
Come to think of it, strncmp might be one of those inconsistently-portable
functions that there's a glib wrapper for. Anyway, you get the idea.
==============================
Peter Williams peter@newton.cx
"AIIEEEEEEEEE!!! DEATH ANTS!!"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]