Created attachment 631280 [details] [diff] [review]
Since &process_bug returns the last comment object from old Bugzilla::Bug->check object, attachment will be considered to one for 'previous' comment than the actual new comment added via email_in script.
process_bug should renew Bugzilla::Bug object before getting latest comment object from it.
Comment on attachment 631280 [details] [diff] [review]
Looks good and works fine. A comment should be added explaining why we recreate the bug object instead of reusing the existing one. This can be done on checkin. r=LpSolit
Committing to: bzr+ssh://firstname.lastname@example.org/bugzilla/trunk/
Committed revision 8267.
Committing to: bzr+ssh://email@example.com/bugzilla/4.2/
Committed revision 8097.