Ident patch



This patch updates ident items when replying to a message or
changing identities while composing a message:

	- When replying, the "To" address are used to search for
	  a match in the list of identities.  The first matching
	  address is used to set the new messages identity.
	  If no matches are found, the default identity is used.

	- When selecting a new identity while composing a message,
	  the subject is checked for "Re" and "Fwd" strings, and
	  replaced with the one from the new identity if present.

	- The body of the new message is searched for the signature
	  from the old identity, and is replaced with the one from
	  the new identity.  If not present, the signature is simply
	  added to the message body in the appropriate place.

Note that if you edit the signature, or if you use an external program
to generate a random signature, the code won't be able to find the old
sig in the message body, and you'll wind up with two signatures - one
from the old ident, one from the new.

This seems to be a rather haphazard way of doing this.  What we need is
a way to keep the signature separate from the message body until the
message is sent - perhaps by having a separate text box in the compose
window, similar to the headers in the message view.  Any thoughts?

--
Steve Wall

ident.patch.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]