Re: [Evolution] Stripping .sig's in replies

On Thu, 2002-04-18 at 23:43, Tuomas Kuosmanen wrote:
On Fri, 2002-04-19 at 09:22, Rob Walker wrote:
    However, what if you parsed back from the end of the message to the last
    magic string, and then nuke from there to the end?  Wouldn't that keep
    from nuking in-between message text?

Then again, nothing guarantees that the signature *does* contain the
magic string...

If the magic string doesn't exist in the email at all, then no signature
(like yours) would be nuked.  

I could see the following heuristic working on your email:

1.  search from end to beginning, is there a "-- "?  no
2.  what is the name of the author? Tuomas Kuosmanen
3.  Search backwards, can we find either part or all of this name
(Tuomas, Kuosmanen, or Tuomas Kuosmanen) on one line all alone?  yes
4.  Highlight from the character following this string to the end of the
message, asking the user if this is the signature, and if they want to
remove it.  yes

5.  store this string "- - -" in the address book with your entry as
your preferred signature string, so whenever an email comes in from you,
check for "- - -" right after checking for "-- " in the future.  :-)


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