After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 115239 - Profiles for mail/news don't get selected according to post type
Profiles for mail/news don't get selected according to post type
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.14.0
Other Linux
: Normal normal
: 0.14.1
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-06-15 15:37 UTC by Brian Key
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brian Key 2003-06-15 15:37:24 UTC
I set up two profiles: one for use with mail, the other for use with
newsgroups, checking the "make this the default profile" box as
appropriate.  (the only difference is that the newsgroup profile has
'NOSPAM' in my mail address)

But whether posting using 'post to/followup to newsgroup' or 'reply by
email' only the mail profile gets used - no message has "NOSPAM" in the
address.

If I reverse the checkboxes (mail profile==prev. 'NOSPAM' default for news,
news profile==prev. 'clean address' default for mail), then 'post
to/followup' uses the mail profile (no "NOSPAM"), but 'reply by mail' now
selects the profile according to the checkbox and I get "NOSPAM" in my mail
address.
(obviously this is the reverse of what I intended - I just hope it might
provide you with a clue)

Actually, if I set up a profile as the default for mail and news (checking
both boxes) and create a second profile but check no "use as default"
boxes, this second profile still gets used during reply by mail only - even
though it shouldn't be used at all.

Er, I *think* that's clear...
Comment 1 Charles Kerr 2003-07-27 02:14:58 UTC
confirmed.

Chris: the problem here is that the group's default profile
is overriding the `default identity for news' and `default
identity for mail' settings, which is the Right Thing, but
confusing.

I think the problem here is that the implicit approach from
the `use the last identity' method and the explicit approach
from the `make this the default' method are in conflict.

I'm leaning right now towards removing the
"make this the default for mail" and
"make this the default for posting" checkboxes from
the identity editor and having it all be implicit:

determine_default_identity ()
{
   if (user is sending mail && user has sent mail before)
   {
      identity = previous_identity_from_sending_mail
   }
   else if (user is posting)
   {
      if (user has posted to this group before)
      {
         identity = previous identity from this group
      }
      else if (user has ever posted before to any group)
      {
         identity = previous identity from any posting
      }
   }

   if (identity == NULL)
      identity = the first one in the identity list
}
         
How does this sound?
Comment 2 Christophe Lambin 2003-07-27 08:53:11 UTC
Sounds good. 
Comment 4 Christophe Lambin 2003-07-28 20:55:07 UTC
Reviewed. Looks fine.