Fallout from bug 698925.
1) Have two accounts, each with a distinct signature
2) Open a compose window in plaintext mode
3) The compose window should have one account's signature in the body of the message
4) Switch the "From" dropdown to the other account
The signature does not change.
The signature should be updated to match the newly selected account.
This is also causing a permanent orange on comm-central.
Created attachment 605481 [details] [diff] [review]
Am I on the right track? I felt a bit out of my depth inside nsMsgCompose.cpp. Did I miss any edge cases?
The compose XPCShell tests seem to pass, and the composition Mozmill tests now all pass with this patch.
Created attachment 605483 [details] [diff] [review]
Forgot to fix some whitespace issues.
Comment on attachment 605483 [details] [diff] [review]
this tests correctly for me, so r=me, modulo the extra blank line before the sig in plain text mode.
Created attachment 605528 [details] [diff] [review]
Patch v3 (carrying over r+ from bienvenu)
Thanks! Axing extra linebreaks.
Committed to comm-central as http://hg.mozilla.org/comm-central/rev/3eea95c47748