Closed (fixed)
Project:
Drupal core
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2004 at 22:31 UTC
Updated:
4 Oct 2005 at 23:00 UTC
Jump to comment: Most recent file
Attached is a patch which fixes the problems with comment.module and mailhandler. It replicates comment_post() in mailhandler (as mailhandler_comment_post), nixing the drupal_gotos at the end of comment_post so that it can be auto run by cron without stopping.
Also fixed a minor SQL bug (missing comma on line 535).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mailhandler_corrected.patch | 9.31 KB | joshk |
| mailhandler_0.patch | 9.31 KB | joshk |
Comments
Comment #1
joshk commentedHere's a patchfile that's not backwards.
Comment #2
moshe weitzman commentedplease submit a patch to comment_post instead. We don't want to maintain all that comment code in mailhandler
Comment #3
killes@www.drop.org commentedThe problem is that mailhandler and listhandler are broken for 4.5 without this patch. Even if we would convince Dries to accept a patch to comment.module for the 4.5 branch our module swould be unusable until the release of 4.5.2.
Comment #4
moshe weitzman commentedok. then someone is welcome to check this code into 4.5 branch. please don't check it into HEAD. Instead, refactor comment_post()
Comment #5
Steve Dondley commentedYou don't know how many hours of my life I lost trying to get mailhandler/listhandler to work. I ended up tracking it down to this bug (which I didn't know about until now). I came here to post my own patch for it.
Can some PLEASE put a note in the INSTALL.txt file to use this patch? It will save other people the nightmare I went through. I spent countless hours trying to figure out what was wrong with my mail list settings/mailhandler settings before I figured out it was a bug.
Again, please, for other people, make a note in the INSTALL file about this patch.
Comment #6
Steve Dondley commentedNOTE: Hunk 3 failed on latest version of mailhandler.module.
Comment #7
handelaar commentedYeah, he's not wrong.
The patch fails.
Comment #8
drummI will be testing and committing this as instructed in update #4.
Comment #9
drummCommitted to 4.5.
Now who is going to fix it in CVS before 4.6?
Sumary: comment_post uses drupal_goto() which horrilbly confuses any module which tries to post comments programmatically.
Comment #10
moshe weitzman commentedComment #11
(not verified) commentedComment #12
(not verified) commentedComment #13
(not verified) commentedComment #14
(not verified) commentedComment #15
(not verified) commented