Open Bug 493893 Opened 15 years ago Updated 2 years ago

Disable "canUndoDeleteOnServer" preference for Gmail IMAP account by default

Categories

(MailNews Core :: Account Manager, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: World, Unassigned)

References

(Blocks 1 open bug)

Details

Disable "canUndoDeleteOnServer" preference for Gmail IMAP account by default, please.

Although user can use "undelete" if user enables "Advanced IMAP Controls" of Gmail's "Lab" and disables "auto expunge" option of the feature, it's not official feature. To protect users from problem like Bug 417167, please set canUndoDeleteOnServer=false by default as mail.server.serverN.is_gmail=true by default for Gmail IMAP account.
Summary: Disable "canUndoDeleteOnServer" preference for Gmail account by default → Disable "canUndoDeleteOnServer" preference for Gmail IMAP account by default
Blocks: tb-gmailWIP
As "Account Wizard for Gmail IMAP" inplemented during Tb 3.0xpre was dropped from Tb 3.0. Enhancement of autoconfig is required.
Wada, mconley, is this something to be just put into the mailnews/base/ispdata/gmail.rdf file? As it is done in http://mxr.mozilla.org/comm-central/source/mailnews/base/ispdata/aol.rdf#40 . I assume this defaults file is used for new accounts created.
(In reply to :aceman from comment #2)
> Wada, mconley, is this something to be just put into the
> mailnews/base/ispdata/gmail.rdf file? As it is done in
> http://mxr.mozilla.org/comm-central/source/mailnews/base/ispdata/aol.rdf#40
> . I assume this defaults file is used for new accounts created.

I think we don't use the rdf file anymore and can't control this kind of settings using the ispdb - so either some autodetect code can be added at the account creation specific for gmail or we should change this to WONTFIX.
Yeah, those ispdata files aren't used any more (apart from movemail), so we'd need to either do this in the backend (or get gmail to make it work!).
It the mail.server.serverX.is_gmail pref used in any way? I can't find any usage and setting of it. But if there is a place that sets it then the same place could set .canUndoDeleteOnServer.
I'm sure Atul knows the answer to this question aceman.
If ispdata files aren't used anymore, then I guess we are left with only one choice of doing this in backend.
I guess we can aim at some places like, http://mxr.mozilla.org/comm-central/source/mailnews/imap/src/nsImapIncomingServer.cpp#2681 , where canUndoDeleteOnServer is by default set to true, we can maybe change this to false in case of GMail servers.
(In reply to Mark Banner (:standard8) from comment #4)
> Yeah, those ispdata files aren't used any more (apart from movemail), so
> we'd need to either do this in the backend (or get gmail to make it work!).

I've not understood the "get gmail to make it work" part, can you elaborate a little? :-)

Cheers!
Maybe it meant "Politely ask Google to fix their servers ASAP" ? :)
(In reply to :aceman from comment #10)
> Maybe it meant "Politely ask Google to fix their servers ASAP" ? :)

Okay :-) Thanks :-)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.