I followed this howto: http://drupal.org/node/40777
I posted a comment there before I realized this issue tracker was not just for Bugs. here is my post..
Hi folks, I have this mostly working. I have seen some inconsistencies from this guide and my own behavior though.
Threads started on email are published in the forum automatically, as i desire. However replies coming from email were always moderated. After I click retrieve from MailHandler it says
"1 message retrieved for email@example.com.
Your comment has been queued for moderation by site administrators and will be published after approval."
for default commands I have tried both
tid: 1
status: 1
and just:
tid: 1
Now the funny thing is I got it to automatically publish the comments by *unchecking* "post comments without approval" for the Authenticated User role in the User Permissions.
But then my authenticated users' comments are moderated..
honestly this seems like a bug.. unless I'm missing something.
[root@vission modules]# rpm -q drupal
drupal-6.19-1.fc13.noarch
; Information added by drupal.org packaging script on 2010-06-13
version = "6.x-1.11"
core = "6.x"
project = "mailhandler"
datestamp = "1276452306"
thoughts?
Comments
Comment #1
JBstrikesagain commentedI'm changing this to a bug report. I reproduced this again tonight on a fresh Drupal 6.19 install.
Comment #2
cor3huis commentedJust something that I thought of, maybe setting in the mailhandler commands
moderate: 0
or 1 or other values will help.
Comment #3
cor3huis commentedYes, same issue here with Drupal 6.19 and Mailhandler 6.x.11. and even if the "moderate:" command or others command setting would set it to publis it should not be that way. Users Permission should be the setteng where it should happen and then just work. Investigating now. If anthing sensible comes up or if I solved it I'll post result (or even patch ) here
Comment #4
cor3huis commentedLooked into the mailhandler.module code (The code is the documentation ;) and found:
That part looks just fine OK, status value is set correctly as it is swapped for node of type comment, however as we can see if you do set the status value in the mailhandler textbox Default commands: explicitly then the permissions system is from that point on not taken into account.
Therefore, as probably the bugreporter also uses listhandler, which in turn will not use the permission system anymore and thus also not the (not proven yet...) set the moderate permissions anymore.
Investigation ongoing.... we will get the beast ;-)
Comment #5
cor3huis commentedProbably duplicate of http://drupal.org/node/716768 could the bugreporter check the fix plz.
Comment #6
cor3huis commentedComment #7
cor3huis commentedAdusting the Listhandler source like in the patch of http://drupal.org/files/issues/listhandler.module.set_.status.diff made it work, therefore not a Mailhandler issue
Reporter of the defect, plz re-test also and the close this defect.
Comment #8
JBstrikesagain commentedThe patch referenced in comment #7 fixed the issue.
cor3huis thank you so much for researching this issue for me. I was stuck. I'm sorry it was a duplicate issue and with listhandler and not mailhandler. I tried to search for it but I obviously didn't find that entry.. maybe I didn't search in listhandler issue queue as much as mailhandler (I thought it was a mailhandler issue obviously)
Anyway I will close this out.
Thanks again.