Project:Drupal core
Component:comment.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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).

AttachmentSizeStatusTest resultOperations
mailhandler_0.patch9.31 KBIgnored: Check issue status.NoneNone

Comments

#1

Here's a patchfile that's not backwards.

AttachmentSizeStatusTest resultOperations
mailhandler_corrected.patch9.31 KBIgnored: Check issue status.NoneNone

#2

please submit a patch to comment_post instead. We don't want to maintain all that comment code in mailhandler

#3

The 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.

#4

ok. then someone is welcome to check this code into 4.5 branch. please don't check it into HEAD. Instead, refactor comment_post()

#5

You 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.

#6

NOTE: Hunk 3 failed on latest version of mailhandler.module.

#7

Yeah, he's not wrong.

The patch fails.

#8

Assigned to:joshk» drumm

I will be testing and committing this as instructed in update #4.

#9

Project:Mailhandler» Drupal core
Component:Code» comment.module
Category:bug report» task
Assigned to:drumm» Anonymous

Committed 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.

#10

Status:active» fixed

#11

#12

#13

#14

#15

Status:fixed» closed (fixed)
nobody click here