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)

Dontom 04-12-2008 04:31 PM

Hi,
I switched to 2.6 recently. If the mailbox contains more than one email the messages get posted but not deleted from the mailbox (pop or imap doesn't matter), which results in multiple postings, until I log in and delete that emails...

Any advice?

Cyricx, are you still here?

Thanks
Tom

snoopy5 04-12-2008 05:21 PM

Hi

two questions:

1. is it possible to use this mod for sending the postings only one-way?

So that users only get the e-mail notification, but can not reply by e-mail?

2. Can I enable in the ACP this Mod for specific usergroups only, i.e. only for premium members?

Thanks in advance

Dontom 04-13-2008 05:05 AM

Quote:

Originally Posted by snoopy5 (Post 1489185)
2. Can I enable in the ACP this Mod for specific usergroups only, i.e. only for premium members?

Yes, after installing the hack you will have additional settings in your forum manager (on a per forum base) - there you can specify which usergroup may use the email functionality...
Tom

Dontom 04-13-2008 06:26 AM

toivo,
in which line did you add the
PHP Code:

imap_delete($mailbox$msg_no); 

?
thanks
tom

toivo 04-13-2008 12:03 PM

Hi tom,

That was just a couple of command line scripts I wrote for testing, not the ei mod. One displays what is in the mailbox and the other deletes the messages. The zip file with readme.txt is attached.

Regards,
toivo

Dontom 04-13-2008 01:49 PM

oh, I just added the account to mail mail-app, so I can just look into the account and view / delete messages. I thought you added a couple of ines to the EI -mod in order to prevent multiple postings...

Dontom 04-13-2008 02:38 PM

I also installed the 2.6.1 but still have the problem of messages being posted n times, because they are not deleted on the mail-server after being posted to the forums....

Any way to fix this?!

Alfa1 04-14-2008 09:40 PM

I am running vb 3.7 RC3 and EI 2.6.1.

I have the following problems and would really enjoy some pointers:
  • -Running the cron gives me this error:
    PHP Code:

    Email Integration
    [*]Warning: require_once([path]/includes/functions_threadprefix.php) [function.require-once]: failed to open streamNo such file or directory in [path]/includes/cron/emailintegration.php on line 41

    Fatal error
    : require_once() [function.require]: Failed opening required '/mydomain/forum/includes/functions_threadprefix.php' (include_path='.:/usr/local/lib/php'in /mydomain/forum/includes/cron/emailintegration.php on line 41 

  • In your installation file you write:
    Quote:

    If you have problems getting emails to appear in the forum, you can use a help script I have written which tests many different configurations to determine the proper entries for your forum. To use this script, go to AdminCP -> Email Integration -> Forum Setings Help.
    I do not find AdminCP -> Email Integration -> Forum Setings Help.
  • - And last but not least, my phpinfo notes this about my IMAP settings:
    Code:

    IMAP c-Client Version        2001
    SSL Support        enabled
    Kerberos Support        enabled

    Does that give any clue to the correct settings in the forum manager? (pop3 with or without SSL, IMAP with or without SSL)

toivo 04-17-2008 01:55 PM

Hi,

Here is a workaround to the problem which stops messages from being deleted:

Quote:

PHP Fatal error: Call to a member function set_parsing_language() on a non-object in {...test forum folder...} \includes\cron\emailintegration.php on line 1615
Force the language code, rather than retrieve it from $touser['languageid']:

Line 1615:

Quote:

$plaintext_parser->set_parsing_language( 1 );
I sent three messages to the mailbox, hit the forum a few times and received all three messages. And they had been deleted from the mailbox, too.

Regards,
toivo

Alfa1 04-17-2008 07:38 PM

Posts are being sent to the email addresses of the members who subscribed, so that is good.

But it seems as the script is not accessing the gmail inbox as no emails are getting posted. I am still getting the error below:

PHP Code:

Email Integration
[*]Warning: require_once([path]/includes/functions_threadprefix.php) [function.require-once]: failed to open streamNo such file or directory in [path]/includes/cron/emailintegration.php on line 41

Fatal error
: require_once() [function.require]: Failed opening required '/mydomain/forum/includes/functions_threadprefix.php' (include_path='.:/usr/local/lib/php'in /mydomain/forum/includes/cron/emailintegration.php on line 41 

I am using normal IMAP.

Does anyone have an idea how to fix this?

Quote:

Originally Posted by Alfa1 (Post 1490743)
I am running vb 3.7 RC3 and EI 2.6.1.

I have the following problems and would really enjoy some pointers:
  • -Running the cron gives me this error:
    PHP Code:

    Email Integration
    [*]Warning: require_once([path]/includes/functions_threadprefix.php) [function.require-once]: failed to open streamNo such file or directory in [path]/includes/cron/emailintegration.php on line 41

    Fatal error
    : require_once() [function.require]: Failed opening required '/mydomain/forum/includes/functions_threadprefix.php' (include_path='.:/usr/local/lib/php'in /mydomain/forum/includes/cron/emailintegration.php on line 41 

  • In your installation file you write: I do not find AdminCP -> Email Integration -> Forum Setings Help.


toivo 04-18-2008 12:44 PM

Hi Alfa1,

You are using vB 3.7 and have followed the installation instructions of EI and uncommented line 41. However, your system does not seem to have the file includes/functions_threadprefix.php or the path is wrong.

Try commenting out line 41 and see what happens.

Regards,
toivo

Alfa1 04-20-2008 12:29 PM

I am using vb 3.7. I have now uncommented line 41. Now I am getting this error:
PHP Code:

Email Integration

Warning
imap_open() [function.imap-open]: Couldn't open stream {gmail.com:143/novalidate-cert}INBOX in [path]/includes/cron/emailintegration.php on line 98

Failed to connect to the mailbox for forum - Forum A

Warning: imap_open() [function.imap-open]: Couldn'
t open stream {gmail.com:143/novalidate-cert}INBOX in [path]/includes/cron/emailintegration.php on line 98

Failed to connect to the mailbox 
for forum Forum B

Done 


toivo 04-20-2008 01:54 PM

Hi,

You can check the settings of the mailbox in your Gmail profile - IMAP Access - Configure your email client:

- the name of the incoming server is imap.gmail.com
- encrypted connection (SSL) is selected
- the incoming server (IMAP) uses port 993

Transfer the first two settings to the EI configuration of the forum in Forum Manager.

In the Forum Manager you also have the choice between SSL (official certificate) and SSL (selfsigned certificate). Chose one of them, depending on the configuration of your server. If your server does not have an SSL certificate, it may be best to change the Gmail mailbox to accept POP connections and change the EI settings for the forum accordingly.

If you get an error message for example because of an incorrect password, the error message should show the IMAP connection stream as:

{imap.gmail.com:993/SSL}INBOX

That combination is one of the choices in emailintegration.php and it is listed on line 86.

Regards,
toivo

itconsultingnv 04-21-2008 10:24 PM

I am getting the same issue as other users. Tthe messages get posted via email but not deleted from the mailbox (pop or imap doesn't matter), which results in multiple postings, until I log in and delete those emails manually. Argghhh.

Also after the upgrade I do not have the Admin CP -> Email Integration sidebar option. Just doesn't show up. Actually uninstalled and reinstalled and still can't see this option any longer.

Everything works as advertised (was waiting on my host to enable IMAP for a while) but since the 2.6.1 I am getting the email posts repeatedly posted until I manually delete. Saw several posts referring to this but no final advice on how to repair this issue. Can't go live on the rest of the forums until this is resolved.

Any advice? Frustrating, love the mod just need this final issue resolved. Thanks in advance. :confused:

toivo 04-21-2008 10:37 PM

Have you checked the PHP error log for error messages caused by emailintegration.php? It may be the same error I developed a workaround for and got the deletion working. See my post from 18 April https://vborg.vbsupport.ru/showpost....&postcount=809

itconsultingnv 04-21-2008 10:42 PM

Saw that post but not sure where to find this error, or which file to make the edit to. Line 1615 of which file? Please advise, would love to try this fix. Thanks for the quick response!

itconsultingnv 04-21-2008 10:53 PM

Thanks again toivo for the quick response. A couple questions.
1. How do I find my PHP error log? Looking in all my logs and nothing specific to PHP. Just my http error logs. Running cpanel on a hosted installation so... perhaps I don't have access to the log.

2. What file do I edit line 1615 in? Do I replace the line with the text you showed?

Thanks in advance.

itconsultingnv 04-21-2008 11:22 PM

Sorry idiot question, so tired today. Ran it with the mod to the file and it appears I am still getting repeat emails and multiple posts on the forum. The emails show as read but not deleted in my webmail access and each time the cron runs t repeats the email and post for this reply. hmm. Any ideas?

toivo 04-21-2008 11:34 PM

The location of the PHP error log is dependent on the type of server and you will need to talk to your hosting provider.

The line 1615 is in the file /includes/cron/emailintegration.php:

Quote:

$plaintext_parser->set_parsing_language($touser['languageid']);
Workaround:
Quote:

$plaintext_parser->set_parsing_language( 1 );
The idea of the workaround is to use the default language code 1. The original code depends on the contents of the $touser array which is for some reason incorrect.

Cheers,
toivo

toivo 04-22-2008 12:10 AM

You have not by any chance turned on the $debug option on line 45? If the value is 1 instead of 0, the messages will not be deleted.

Quote:

Originally Posted by itconsultingnv (Post 1496201)
Sorry idiot question, so tired today. Ran it with the mod to the file and it appears I am still getting repeat emails and multiple posts on the forum. The emails show as read but not deleted in my webmail access and each time the cron runs t repeats the email and post for this reply. hmm. Any ideas?


toivo 04-22-2008 01:28 AM

The location of the PHP error file is set in the php.ini file, for example:

error_log = /var/log/httpd/php_error.log

If you do not have access to the php.ini file in your hosting setup, you may be able to change the location of the PHP error log so that you can see the error messages. There are a couple of ways to to do that, for details see http://php.net/configuration.changes

If you are allowed to use .htaccess files in the document root directory, you can use the directive php_flag to set a local value to the error_log directive.

Otherwise, if you are handy with PHP, you may be able to set up a local value for the session using the ini_set function.

It is important to find out if a PHP error has happened and where it occurred before the problem can be addressed.

itconsultingnv 04-22-2008 04:28 PM

Performed your mod (toivo) to the cron file and still had messages left on the server. Checked the debug variable and it is set to 0. Weird. Not sure why my installation is leaving emails on the server. Any ideas beyond the ones you provided? Had issues in the past while testing. Had the older version running but IMAP was not enabled. Uninstalled the mod and reinstalled the newest mod. Could there be some throwback code left in the installation. Ugh. Any help would be greatly appreciated. Thanks again for your input!

itconsultingnv 04-22-2008 04:31 PM

btw, since I made that mod you suggested...

The line 1615 is in the file /includes/cron/emailintegration.php:

$plaintext_parser->set_parsing_language($touser['languageid']);

Workaround:

$plaintext_parser->set_parsing_language( 1 );

I am no longer getting the error I had when manually running the cron. Will test again today and see if it is working now. Odd, suddenly I have the Admin CP -> Email Integration in the sidebar when earlier I didn't. Cache? hmmm.

Again everything is working great except emails are being left on the server and continually reposted to the site and emailed out to users. Frustrating!

itconsultingnv 04-22-2008 04:42 PM

Okay. Soooo weird. Think cyricx is listening, watching... and still had my log-in information, which would be just fine with me. LOL. Appears to be working properly now. Leaving no duplicates, no errors. Wild. Had a bunch, and I mean a bunch of repeats from two posts throughout the night. Deleted those manually through webmail and just retested... wala. No more emails being left on the server. Brilliant! Now I just hope nothing gets broken when I upgrade to 3.7 when it goes stable. Any issues I should be aware (afraid of)? Any input would, as usual, be greatly appreciated. Thanks again toivo and cyricx for the great support! Much appreciated.

itconsultingnv 04-22-2008 05:56 PM

Okay, so everything was working, emails going out and being deleted from the server as they should. Then I started getting notifications of some double posts and posts not showing up from email replies. Went to run the scheduled task and I am again getting the following error when running the email integration cron (the error that was showing up for a time the last few days which when it start=ed working was no longer erroring).

Email Integration

Fatal error: Call to a member function on a non-object in /home3/naeadm/public_html/forum/includes/cron/emailintegration.php on line 1093

SO it appears that if my cron is erroring out with the above error the email funcitonality is not consistent. But when I do not receive this error everything work fine. The only oddity is why this errored out for awhile and then started erroring again.

I have one email response that appears to be going out multiple times now. Like it is stuck in the POP account and not being deleted. Logged into the webmail interface and go figure, there were emails in there. Manually deleted them and then reran the cron, walaa! it runs. Is there some type of formatting issue within an email that could cause this? Emailed another response to the post and now it is functional again. Almost as if one of the email posts was causing the cron to fail. Odd! Any advise? Thanks in advance, again!

Any ideas? Really quite frustrating now. What variables could cause this effect? Thanks in advance!

itconsultingnv 04-22-2008 06:04 PM

Modified the code at line 1093 to the same mod as toivo and things appear to be working... for now! Testing again, after clearing the pop account. Hope this works!

ttseppal 04-22-2008 07:16 PM

Hi, toivo

In my case, the problem lies with the variable plaintext_parser not being correctly set. So I commented the line 1266 at cron/emailintegration.php like this:

//unset($plaintext_parser, $pagetext_cache);

This way, I do not receive the error on line 1093 (call to member function on a non-object), and emails get deleted from the mailbox, too. I just wonder what side effects this might cause.

Quote:

Originally Posted by toivo (Post 1492963)
Hi,

Here is a workaround to the problem which stops messages from being deleted:



Force the language code, rather than retrieve it from $touser['languageid']:

Line 1615:



I sent three messages to the mailbox, hit the forum a few times and received all three messages. And they had been deleted from the mailbox, too.

Regards,
toivo


itconsultingnv 04-22-2008 07:22 PM

Interesting... but just found that of the 4 users I have beta testing the email integration with (in a private forum) if one of the users, lets call it user A (who is using outlook and running trend micro for av) stops the email integration cron from running. For some reason if any of this particular users response emails reside in the POP mailbox it stops the cron job from running with the 1093 error... will try uncommenting that but believe the problems lies somewhere in the internet email header changes that trend micro makes? grrr. Narrowed it down now. Crazy but true. Not sure where to go from here. Want the mod but if we cannot run it consistently with a variety of users and email apps I can't troubleshoot this for a group of 500± members. Am going to research but could really use some response from cyricx as this is beyond my capabilities. Any info? Thanks and best regards!

fredang85 04-23-2008 04:35 AM

Mine was working perfectly 1 day ago, but yesterday, it stopped working.

It will no longer notify me anymore threads/posts. Is there anyway to check it?

toivo 04-23-2008 12:10 PM

Hi fredang85,

You could access the mailbox and check if the messages are still there and not deleted. On the other hand, that is unlikely because the symptoms of the messages sitting in the mailbox without being deleted are multiple copies of the same message being posted and sent to members.

You could check the PHP error log to see if the script emailintegration.php has produced any errors and post them in this thread so that we can have a look at them.

At the start of emailintegration.php there is a debug switch which you can turn on to get more info sent to you. It did not seem to have any effect in my quick test but might be worth trying:

Quote:

// debug command - LEAVE THIS OFF!!!
// Turning this on will stop emails from being deleted from the server!
$debug = 0;
// enter the email address error messages should go to when debug is on.
$debugemail = 'youremail@yourdomain.com';
Change it to:
Quote:

$debug = 1;
and replace the email address with your own.

Regards,
toivo

toivo 04-23-2008 12:33 PM

Hi ttseppal,

Thanks, that is interesting. The hot fix for 2.6.1 also involved unsetting a variable or rather an object.

I'll just continue testing and studying the source code to learn more.

Regards,
toivo

Quote:

Originally Posted by ttseppal (Post 1496769)
Hi, toivo

In my case, the problem lies with the variable plaintext_parser not being correctly set. So I commented the line 1266 at cron/emailintegration.php like this:

//unset($plaintext_parser, $pagetext_cache);

This way, I do not receive the error on line 1093 (call to member function on a non-object), and emails get deleted from the mailbox, too. I just wonder what side effects this might cause.


snoopy5 04-24-2008 12:31 PM

Quote:

Originally Posted by snoopy5 (Post 1489185)
Hi

two questions:

1. is it possible to use this mod for sending the postings only one-way?

So that users only get the e-mail notification, but can not reply by e-mail

Thanks in advance


Hi

my old question is not answered yet. Is it possible to configure this hack, so that it works only one way?

So without reply by mail.

Only sending all messages which have been posted to the forum immediately to the user? without interruption and without clicking on a link to get the next posting also by mail?

itconsultingnv 04-24-2008 03:17 PM

Continuing to have the problem where it works for awhile, posts to the forum are sent out and email responses are posted, then suddenly, for no apparent reason it keeps sending an email post over and over and over, when I check the webmail I see the offending email post as well as other posts sent after that one that are sitting there waiting to be processed. If I go into the cron it gives me a line 1093 error, then if I go to the webmail, clear out all of the emails, then run the ei cron again it no longer errors. Don't know if that is related in some way. Anyone know what to do? Is Cyrcicx still supporting this software? Not sure if I should continue spending time on this option until further notice. Please help. Anyone else running this successfully? Thanks!

Ted Clore 04-27-2008 02:06 PM

After several frustrating attempts to get this to work with vB 3.6.8, 3.6.9 and 3.7.0, I have given up. I have spent 4-5 hours trying. It is a good idea and if it worked with my site it would be a nice addition. I'll keep checking for further updates that may make this an easy hack to install.

snoopy5 04-28-2008 11:24 AM

is this mod dead?

Did anybody achieve to get it running? Even if it is only for sending postings out without the reply functionality?

toivo 04-28-2008 01:02 PM

I can confirm the EI mod reads the messages from the mailbox, posts them and sends them with the reply capability which also works in our test forum. I had to force the language code to 1 (see https://vborg.vbsupport.ru/showthrea...151222&page=55) to make it delete the messages from the mailbox, otherwise the posts were repeated.

I have also tested a small script which reads the forum home page at regular intervals, to boost the traffic and trigger the EI script which depends on the hits which cause the cron tasks to run.

Regards,
toivo

MikeH2911 05-02-2008 01:07 AM

Hi,

I installed v2.2 of this mod and have since removed it, however there is still a link in forum tools to subscribe to a forum, I'm sure this was from a file edit somewhere but can't find it, can anyone help me out. How do I remove this?

Mike

Crys 05-07-2008 08:58 PM

Hi,

I'm looking for some assistance regarding the e-mail integration hack. Everything is installed but, for some odd reason, none of the e-mails/replies are being posted on the forum. However, if I posted directly on the forum, I get the e-mail. I set everything up using GMail and followed exactly what was instructed. Am I missing something???????

Please let me know soon because I really need this working for an event happening Friday. Thank you so much for your help!

~ Crys ^^

capsize 05-19-2008 07:57 PM

There's a bug when Allow Attachments? is set to "No" and Dismiss Attachments? is set to "Yes" in the EI options. In this mode, the attachments are supposed to be discarded and the post is supposed to be made using only the text portion of the email.

In the code for this mode, there's an error that causes the emailed post/reply with the attachment(s) to be left undeleted in the incoming mailbox and causes processing to skip the message entirely with no post made to the forum.

The fix is this:

Comment out the statement in line 515 (assuming v2.6.1beta) of emailintegration.php to allow the post to proceed without the attachments:

PHP Code:

else if ($d_message['attachments'] AND $vbulletin->options['ei_allow_attachments'] == AND $vbulletin->options['ei_dismiss_attachments'] == 1)
{
  
$eilog .= "Attachments dismissed: " $userinfo['username'] . "\r\n";
  
$mailmessage .= "\r\n\r\n[Attachments are disabled from email. Non-text portions have been removed.]";
  
//continue;      /**** comment out to fix the bug ****/



Thanks a million for adding this mode, Cyricx!

mykkal 05-19-2008 08:30 PM

This is good information.

Will they submit a new release that has bug fixes?

Quote:

Originally Posted by capsize (Post 1525066)
There's a bug when Allow Attachments? is set to "No" and Dismiss Attachments? is set to "Yes" in the EI options. In this mode, the attachments are supposed to be discarded and the post is supposed to be made using only the text portion of the email.

In the code for this mode, there's an error that causes the emailed post/reply with the attachment(s) to be left undeleted in the incoming mailbox and causes processing to skip the message entirely with no post made to the forum.

The fix is this:

Comment out the statement in line 515 (assuming v2.6.1beta) of emailintegration.php to allow the post to proceed without the attachments:

PHP Code:

else if ($d_message['attachments'] AND $vbulletin->options['ei_allow_attachments'] == AND $vbulletin->options['ei_dismiss_attachments'] == 1)
{
  
$eilog .= "Attachments dismissed: " $userinfo['username'] . "\r\n";
  
$mailmessage .= "\r\n\r\n[Attachments are disabled from email. Non-text portions have been removed.]";
  
//continue;      /**** comment out to fix the bug ****/



Thanks a million for adding this mode, Cyricx!



All times are GMT. The time now is 04:27 PM.

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.02107 seconds
  • Memory Usage 1,915KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (14)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