Closed Bug 310155 Opened 19 years ago Closed 15 years ago

mail_delivery_method should have a "temporarily disable" option

Categories

(Bugzilla :: Email Notifications, enhancement)

2.19.3
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gerv, Unassigned)

References

Details

It would be cool if the mail_delivery_method Param had an option to temporarily
disable mail - in other words, it didn't send mail but it also didn't update the
last-changed date. This allows you to make big changes to Bugzilla much faster.

Dave did this for the auto-unco stuff, so he should be able to say which bits of
code the if() test would be wrapped around.

It could be that future work on the mail system will eliminate the performance
problem; but it seems to me that not sending mail will always be quicker than
sending mail. And this enhancement would be pretty cheap and simple.

Gerv
Dave said:

"gerv: for the record, what I ended up doing was setting $enableSendMail = 0 at
the top of Bugzilla/BugMail.pm, then commenting out the SendSQL call that
updates lastdiffed."

Gerv
I generally disagree with implementing this. It will confuse admins, and lead
them to making mistakes. The best thing to do is to just queue mails and then
send them after the page processes, which should eliminate all latency from
sending emails.
i'm with max on this one, it would be too confusing.

the real fix for this is bug 249121
Well... is bug 249121 one of those "wouldn't it be nice if" bugs that'll never
get done because it's a heck of a lot of work, or is there a simple way to do it?

Gerv
> Well... is bug 249121 one of those "wouldn't it be nice if" bugs that'll never
> get done because it's a heck of a lot of work, or is there a simple way to
> do it?

just between you and me i've started working on it.
most of it's simple.
Adding a dependency; when the other bug is fixed, I'll mark this one WONTFIX.

Gerv
Depends on: 249121
glob: is comment #5 a case of "famous last words"? :-)

Gerv
Looks like this did get implemented in bug 284184.

Gerv
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.