It's nsMsgIdentity::GetSignature which should also return the line count and the max line length for usage in Bug 45137.
http://lxr.mozilla.org/mozilla/source/mailnews/base/public/nsIMsgIdentity.idl#88
perhaps you could write a nsIMsgSignature interface to do what you want...
