vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Email Integration (New threads/replies by email) (https://vborg.vbsupport.ru/showthread.php?t=151222)

capsize 05-21-2008 07:20 PM

Cyricx has been good about incorporating all the bug fixes reported in this thread into his next releases. I don't have a clue when he might make another release of this mod, though his last post said that he was going to replace the mimedecode.php message parsing with something more robust; i.e., a major change. I'm relying on this mod on my board and have so far not had any problems. I'd definitely like to help make this mod as solid and stable as possible. A major failure of this mod would be devastating to my board. It would be useful to put together a list of open bugs unrelated to the mimedecode attachment parsing for Cyricx to fix in his next release. I'll start it here. Please post any issues you're having with this mod so that they can be addressed. Note that "fixed" below only means that a workaround is known that seems to resolve the problem. There may be a better fix to the problem but this workaround is sufficient for now.

2.6.1beta issue #1:
Email notification for a new thread contains a blank name for the poster
status: fixed
see post #760 in this thread from Ron Wilhelm

2.6.1beta issue #2:
Fatal error: Call to a member function on a non-object in [forumdir]/includes/cron/emailintegration.php on line 1093
status: unknown
When this error occurs, incoming email posts are emailed out multiple times and are not deleted from the mailbox. May be caused by certain incoming email messages containing text or headers that are not handled properly.

2.6.1beta issue #3:
Fatal error: require_once() [function.require]: Failed opening required '[forumdir]/includes/functions_threadprefix.php' (include_path='.:/usr/local/lib/php') in [forumdir]/includes/cron/emailintegration.php on line 41
status: unknown
May be caused by an incorrect configuration or installation of the EI mod.

2.6.1beta issue #4:
PHP Fatal error: Call to a member function set_parsing_language() on a non-object in [forumdir]/includes/cron/emailintegration.php on line 1615
status: fixed
see post #809 in this thread from toivo

2.6.1beta issue #5:
Dismiss attachments mode doesn't work properly
status: fixed
see post #839 in this thread from capsize

ThePiston 05-21-2008 07:37 PM

can we also start a thread for requested changes?

For example: if you really want this to work like an email list, you need to have the ability to either the "list" or just the person that sent the last post. It's like having "reply" vs "reply all". That's a huge piece of the puzzle missing for me and I sadly I can't use it until that's addressed. Shouldn't be too hard - make the "reply all" go back to the forum like usual, but the "reply" be directed as a PM to that one user.

capsize 05-31-2008 10:37 PM

I have a tentative fix for issue #2. I believe this fix also resolves another aspect of issue #4. If you have experienced either issue #2 or #4, can you please try making the following changes plus toivo's change for #4 and report back as to whether the issues are fixed?

I believe the cause of #2 and #4 is that a variable is redefined and then unset within a block inside a loop. This causes the remaining code in the loop to now reference the unset variable. The workaround is to use a different name for the variable in the block so that it doesn't conflict with the other usage. The name collision appears to be a case where code was copied and pasted carelessly.

I have made the changes to my installation and have seen no problems with this fix so far.

Here's the fix to 2.6.1beta:

PHP Code:

In emailintegration.phpchange the variable $plaintext_parser to $plaintext_parser2 in the following four places (lines 118512551256, and 1266).  Below are the changes as reported by Unix diff:

1185c1185
<                                       $plaintext_parser =& new vB_BbCodeParser_PlainText($vbulletinfetch_tag_list());
---
>                                       
$plaintext_parser2 =& new vB_BbCodeParser_PlainText($vbulletinfetch_tag_list());
1255,1256c1255,1256
<                                                       $plaintext_parser->set_parsing_language($touser['languageid']);
<                                                       
$pagetext_cache["$touser[languageid]"] = $plaintext_parser->parse($pagetext_orig$foruminfo['forumid']);
---
>                                                       
$plaintext_parser2->set_parsing_language($touser['languageid']);
>                                                       
$pagetext_cache["$touser[languageid]"] = $plaintext_parser2->parse($pagetext_orig$foruminfo['forumid']);
1266c1266
<                                       unset($plaintext_parser$pagetext_cache);
---
>                                       unset(
$plaintext_parser2$pagetext_cache); 


tekguru 06-01-2008 08:42 AM

Okay change now in place on my site, we'll see how it goes!

goldendox 06-01-2008 08:35 PM

I have the beta installed. Did a test by running it in task manager. Seems okay, yet nobody is getting emails (that I know of).

in hostname, is localhost ok, or should it be 'localhost'
it seems that all users are set by default to receive emails from all forums. I have a junior member acct (who i have as an allowed usergroup), and am not receiving any emails other than the admin ones. i set each forum up with different addresses. still have the admin one. that is the one i'm still getting standard email notifications of.

also, how or where can i check to see if those emails are going through?

thanks.

Cyricx 06-01-2008 09:26 PM

I'm still bouncing around, but have zero time to look into all the posts yet..

Wife lost her job, so having to take on alot of extra freelance work to keep the bills paid.

No eta on when I'll be able to bust some more arse on this. There are a few new email parsers out I want to try.

Just wanted to give ya all a headsup so you didn't think I was dead LOL.

Just paying bills :)

Tralala 06-03-2008 12:09 AM

Hiya Cyricx, long time no chat, thanks for your help with getting this guy installed on my small forum.

I only have one sub-forum set up for important announcements, that's the one that has email integration turned on.

My question is, is it possible to set it so that only one usergroup can post to particular forum, but that those posts are emailed to everyone on the forum (assuming everyone is subscribed?)

If so, would I just set this up in that forum's usergroup permissions?

Cyricx 06-03-2008 12:44 AM

I believe right now, those two permissions are tied together in the "Please enter the usergroup IDs that can use this feature." setting in the Forum Manager. That controls who can choose to receive the emails as well as who is enabled to receive them.

I'll add this to my list to separate those permissions though.

toivo 06-03-2008 02:08 AM

I have just re-installed the EI mod to a test forum with the suggested modifications. Messages are read and posted all right to the forum, and they magically started arriving by email, too.

Regards,
toivo

Tralala 06-03-2008 04:19 PM

Quote:

Originally Posted by Cyricx (Post 1539284)
I believe right now, those two permissions are tied together in the "Please enter the usergroup IDs that can use this feature." setting in the Forum Manager. That controls who can choose to receive the emails as well as who is enabled to receive them.

I'll add this to my list to separate those permissions though.

Ah, okay, I was thinking I could set this up with the standard forum permissions (ie: restricting postability via the standard admin tools.)

I anxiously await any future updates. This mod makes vBulletin so much better for our needs and I really appreciate your work on it. Thank you!

rcwild 06-04-2008 09:02 PM

I'm having a problem similar to a previous poster. Scheduled Task Manager error message reads:

Quote:

Email Integration

Warning: imap_open(): Couldn't open stream {localhost:110/pop3/notls}INBOX in [path]/includes/cron/emailintegration.php on line 98

Failed to connect to the mailbox for forum - News, Videos, Free for All

Warning: imap_open(): Couldn't open stream {localhost:110/pop3/notls}INBOX in [path]/includes/cron/emailintegration.php on line 98

Failed to connect to the mailbox for forum - Technical Canyoneering

Warning: imap_open(): Couldn't open stream {localhost:110/pop3/notls}INBOX in [path]/includes/cron/emailintegration.php on line 98

Failed to connect to the mailbox for forum - Canyon Beta & Partners
Done
It seems to suggest that there is a discrepancy with usernames and/or passwords, but I've checked, double-checked and triple-checked to make sure they match.

I'm stumped.

goldendox 06-04-2008 09:56 PM

Thanks. Sorry to hear about your wife losing her job. Hang in there. I've disabled this beta till able to get support regarding why it's not working. Thanks.

{QUOTE=Cyricx;1538174]I'm still bouncing around, but have zero time to look into all the posts yet..

Wife lost her job, so having to take on alot of extra freelance work to keep the bills paid.

No eta on when I'll be able to bust some more arse on this. There are a few new email parsers out I want to try.

Just wanted to give ya all a headsup so you didn't think I was dead LOL.

Just paying bills :)[/QUOTE]

rcwild 06-04-2008 09:57 PM

With some help from my host, I moved beyond the mail connection problem above and onto a new problem. :(

Quote:

Email Integration

Fatal error:
This forum requires that you wait 30 seconds between posts. Please try again in 30 seconds.
Unable to proceed with save while $errors array is not empty in class vb_datamanager_post in [path]/includes/class_dm.php on line 810

toivo 06-04-2008 10:10 PM

Quote:

Originally Posted by goldendox (Post 1538139)
I have the beta installed. Did a test by running it in task manager. Seems okay, yet nobody is getting emails (that I know of).

in hostname, is localhost ok, or should it be 'localhost'
it seems that all users are set by default to receive emails from all forums. I have a junior member acct (who i have as an allowed usergroup), and am not receiving any emails other than the admin ones. i set each forum up with different addresses. still have the admin one. that is the one i'm still getting standard email notifications of.

also, how or where can i check to see if those emails are going through?

thanks.

If the email messages you send to the mailbox are read all right by EI mod, then obviously the hostname of your SMTP server is correct. If the mailbox is on a mail server running in the same box as your vBulletin, the hostname should be just localhost, without quotes.

toivo 06-04-2008 10:22 PM

Quote:

Originally Posted by rcwild (Post 1541041)
With some help from my host, I moved beyond the mail connection problem above and onto a new problem. :(

The script /includes/class_dm.php is not part of the EI mod but obviously its methods are being used when posting the email messages.

The 30 second restriction comes from the flood check setting in AdminCP - vBulletin Options - Email Options: "This is the number of seconds that must elapse between emails that a user can send to other members. This is primarily to prevent a user from easily spamming members. Set it to 0 to disable this option."

It would be useful to see what actual error causes the $errors array to have a message. Have you tried to change the 30 second limit to 0?

rcwild 06-05-2008 12:08 AM

I tried your suggestion. One problem solved and another pops up.

Decided to give up and started to uninstall the mod. Decision on hold for right now. What I like most about this mod is actually the Edit Forum Subscriptions feature in the User CP. Users have always had the ability to subscribe to forums and threads, but few did so because the process was a bit cumbersome. I like the idea of having one page -- /forums/subscribeforums.php -- that I can link to for forum subscriptions.

I also like the Auto Subscriptions feature. Would be nice to change all of our users over to "daily updates by email" on our most popular forums. Giving users the ability to post to threads by replying to an email is not an important feature. In fact, I would rather bring our users over to the site.

So I'm wondering if it's possible to use only these select features with this mod.

1. A simple Edit Forum Subscriptions page.
2. Auto Subscriptions.

Or is there someone out there that could come up with something ??

Lori 06-09-2008 08:28 PM

I love this hack - but since my board is private the reply email won't work.

so, I'm wondering two things:

1. Is there a way to modify the email to NOT include the option for reply?
and
2.. can it be sent as a daily digest instead of in response to each individual thread/reply?

Thanks!!!
Lori

toivo 06-09-2008 11:23 PM

Quote:

Originally Posted by Lori (Post 1545349)
I love this hack - but since my board is private the reply email won't work.

so, I'm wondering two things:

1. Is there a way to modify the email to NOT include the option for reply?
and
2.. can it be sent as a daily digest instead of in response to each individual thread/reply?

Thanks!!!
Lori

You should perhaps look at the Instand New Thread Notification mod instead: https://vborg.vbsupport.ru/showthread.php?t=141280

We now have the following options available under UserCP - Edit Options - Messaging & Notifications - Default Thread Subscription Mode:
- Do not subscribe
- No email notification
- Instant email notification
- Daily email notification
- Weekly email notification

Regards,
toivo

Lori 06-09-2008 11:42 PM

Toivo-
Thanks - I did check into that, but I really need to be able to "auto subscribe" members and not rely on them to subscribe themselves or to post before being subscribed.

If I'm missing something in the one you recommended please let me know.

What it is I'm looking for is a daily digest (or even per post) where people are automatically subscribed and emailed.

Many on my board lurk but don't post, therefore need the digests...

Thanks again for the suggestion

Lori

briang123 06-13-2008 09:33 PM

IM having an issue where a particular form keeps emailing itself the same 4 messages... Ill clear out the POP3 account, and they reappear. Ive since disabled ei on the forum, but when I do run the job I get the following error. Any ideas?

Fatal error: Call to a member function do_parse() on a non-object in \includes\cron\emailintegration.php on line 1079
PHP Fatal error: Call to a member function do_parse() on a non-object in \includes\cron\emailintegration.php on line 1079

I have several other forums set up and they are all fine.

vBulletin 3.6.8 Patch Level 2

PaperQueen 06-30-2008 06:15 PM

First and foremost, Cyricx, you rock.

I've combed through posts in this thread for the past half hour, but can't find one that says whether or not you built in the function requested by Tralala (#122) about allowing only new threads to trigger emails...? Like him, my concern is that if members become inundated with too many emails, it will detract from what that particular forum is about (essentially, a 911 service for retailers in search of out of stock product).

From the version history, it doesn't appear to be in yet, but it's something you were excited about early on, so thought it was worth asking.

Thanks tons for all you do!

Cyricx 06-30-2008 06:26 PM

It's not in yet, but it's coming.

I'm sooo close to being able to jump back on this bugger. I got a little bit of work to do with the online registration code I'm writing for gaea, and then a few small tweaks to some other custom code.

Then I'm on this... the light is showing in the tunnel!!

I'm just sorry it's taken so long to get back to this.. hopefully I can make some huge leaps into the next version and get some beta testers!

My biggest problem so far has been finding people to help beta test, so I end up having to release versions based on the bugs that just I can find :(

PaperQueen 06-30-2008 06:44 PM

Quote:

Originally Posted by Cyricx (Post 1563278)
It's not in yet, but it's coming.
I'm just sorry it's taken so long to get back to this...

What? You have a life beyond all of us? Gadzooks! ;)

No complaints here; would love to be a beta tester, but given the facts (a) this would be my first mod of any kind, and (b) I'm too "newbie" to risk it in a live forum, I'm a bit squeemish about volunteering (translated: chicken).

Hang in there!

Cyricx 07-01-2008 12:34 AM

Mostly what I need from beta testers is to come to my test site and try to break it :)

Break it on my site, and I can find the bugs easier then I can try to find how they happened on someone else's server :)

Dr. Bantham 07-10-2008 08:10 PM

Quote:

Originally Posted by tekguru (Post 1483037)
Anyone had any issues since upgrading to 3.6.9 of vB? For me it still works but HTML format mails come through as pure HTML, not formatting correctly at all.

We've had to switch over to using text only mails.....

I have this identical problem.

Cyricx 07-10-2008 08:23 PM

Need to redo the file edit :)

Dr. Bantham 07-10-2008 09:12 PM

Quote:

Originally Posted by Cyricx (Post 1572237)
Need to redo the file edit :)

Ah, this was rubbed when I upgraded the site. Silly me! Thanks!

riahiarshia 07-11-2008 06:11 PM

Is anyone having problems with certain 'replies' not getting deleted from the 'inbox' ? It keeps showing up on the thread and an email is sent out to users; over and over and over again.

I have got to fix this. Please help...
-Alex

AyeCapn 07-11-2008 06:43 PM

Quote:

Originally Posted by riahiarshia (Post 1572986)
Is anyone having problems with certain 'replies' not getting deleted from the 'inbox' ? It keeps showing up on the thread and an email is sent out to users; over and over and over again.

I have got to fix this. Please help...
-Alex

This happened to one p my users last week. I thought it was an issue with my host. I asked her to stop using the reply feature and it went away.

Juat one user experienced this issue.

We are on 3.7.1 PL1

Cyricx 07-15-2008 12:42 PM

I think it's tied to multipart vista emails.

I've got some new body decode code I'm working on that I'm hoping to solve that issue.

The decode file that I'm using now is an old pear package that has reports of bugs along those lines. Noone that I know of has been able to get the code to work so I'm again, building from scratch and I'm going to try more of imaps functions with some simple base php decode functions.

When you notice it happen, please verify that it is a multipart email in the header information of the email :)

riahiarshia 07-15-2008 02:02 PM

Hello,
I can reproduce this. My workaround is to delete the email manually right now. This is happening in testing with just a couple of people sending emails back and fort. I am a little afraid to go to production with it.

Below is the header of one of the messages that had problems.

-Alex


Microsoft Mail Internet Headers Version 2.0
Received: from webaccess.egenera.com ([63.139.209.15]) by bart.corp.egenera.com with Microsoft SMTPSVC(6.0.3790.3959);
Tue, 15 Jul 2008 10:48:19 -0400
Received: from psmtp.com ([64.18.3.101]) by webaccess.egenera.com with Microsoft SMTPSVC(6.0.3790.3959);
Tue, 15 Jul 2008 10:49:03 -0400
Received: from source ([216.235.242.184]) (using TLSv1) by exprod8mx201.postini.com ([64.18.7.10]) with SMTP;
Tue, 15 Jul 2008 09:47:26 CDT
Received: from smithers.egenera.com (localhost.localdomain [127.0.0.1])
by smithers.egenera.com (8.13.1/8.13.1) with ESMTP id m6FElKl4024458
for <xxxxxxx@egenera.com>; Tue, 15 Jul 2008 10:47:20 -0400
Received: (from apache@localhost)
by smithers.egenera.com (8.13.1/8.13.1/Submit) id m6FElKxl024457;
Tue, 15 Jul 2008 10:47:20 -0400
To: xxxxxxx@egenera.com
Subject: RE: [SE FAQ & Tech Talk-t-375] 4 of 5 Dentists Recommend Bob
Date: Tue, 15 Jul 2008 10:47:17 -0400
From: Rhart <xxxxxxx@egenera.com>
Reply-To: XXXXXX@egenera.com
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Message-Id: <375.640@emailintegration>
References: <375.635@emailintegration>
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
Return-Path: apache@smithers.egenera.com
X-OriginalArrivalTime: 15 Jul 2008 14:49:03.0596 (UTC) FILETIME=[ECB08AC0:01C8E689]
X-EsetId: 58762D24FC8B26310D36

Cyricx 07-15-2008 03:54 PM

Try turning off strict email checking and let me know please if it still sticks. :)

riahiarshia 07-15-2008 04:18 PM

Hello,
How do I turn that off ?

riahiarshia 07-15-2008 04:27 PM

Also,
Would it help if I was able to access bart.corp.egenera.com directly instead of going through webaccess.egenera.com? I am not even sure if IT will allow that but if that is a workaround, I can always ask them.

Thanks,
Alex

kevinh 07-16-2008 03:38 AM

We just started using this today on a new forum and one of the first responses to a thread by email kept coming through again and again - 15 times before I changed the user's status so they could no longer respond by email and then it stopped.

I'm guessing that the user's mail server did not recognise that the message had been received and just kept re-sending it.

Is there a way to prevent this from happening? (because it's a sure fire way to upset users quickly if they get the same email 15 times!)

We really need a means to detect and block identical posts.

riahiarshia 07-16-2008 12:46 PM

Kevin,
I believe the reason the Email is being re-sent is that it is not being deleted from the IMAP/POP3 server after it is read. As such, every time the pHp cron activates the module to fetch mail from the IMAP/POP3 server, it fetches the same mail over and over again. In fact, if you look at the thread in the forum portal, you will see the reply is being posted multiple times. Cyricx who developed this module is aware of the problem. I have asked him a couple of questions above to find a quick workaround while he can perhaps rebuild the code.

We cannot use this feature on a large scale right now. It would be an administrative nightmare to troubleshoot.

-Alex

kevinh 07-16-2008 11:41 PM

Thanks for this Alex. The post was indeed posted multiple time in the web view of the forum. Sadly this makes EI unusable for us until this is resolved, because it has the capacity to upset lots of users very quickly :)

Is it possible to simply disable email replies but retain the email notifications of new posts?

riahiarshia 07-17-2008 06:55 PM

I set 'Strict Email Checking' to 'NO'.
I am testing now. I will send an update as soon as I have some results.

-Alex

riahiarshia 07-17-2008 07:23 PM

That did not help.

riahiarshia 07-17-2008 08:05 PM

I wonder if it would help if I used a different mail server or switch from IMAP to POP3.
Any ideas ?

Will keep you updated...


All times are GMT. The time now is 05:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02153 seconds
  • Memory Usage 1,874KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete