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)

Fungsten 02-11-2009 10:00 PM

Quote:

Originally Posted by asiegel (Post 1741159)
Hi,

I was wondering if this addon works as expected in v3.8 of vbulletin

Any feedback is appreciated!

Thanks,
a

VB 3.8.1. Works.

paul5 02-20-2009 06:43 PM

Hello,

I upgraded to vbulletin 3.8.1 last night, and Email Integration stopped working. Now, when I try to access the Forum Settings Help or the Email Integration scheduled task, I get this error:

Imap not recognized!! You MUST enable IMAP extensions on your server in your php.ini file!

I am not using IMAP, and I never have been, and I don't want to. This server only sends out messages to users, it does not accept replies/incoming messages.

Email Integration was working perfectly before the upgrade. (I was previously running 3.7.3 pl1)

Can someone help me to figure out what is wrong? I do not want to recompile PHP in order to enable a feature that I don't even want.

I am running OpenBSD 4.1, Apache/1.3.39 (Unix) PHP/5.2.4.

Thanks for your help.

toivo 04-06-2009 11:41 PM

Don't you love it when a user goes on holidays from the forum that the EI Mod runs on? The person has of course set an out-of-office message in his/her native tongue which does not contain a single word that could be trapped by the out-of-office filter in your mail server. You wake up in the morning to find dozens of bounced messages in your mailbox and posts in the forum with a few expletives from frustrated users in different time zones.

This hack works for users of the old message format. It compares the beginning of the new message to the first 100 characters of the user's previous message and, if identical, removes the message from the mailbox.

Find the line 264 in emailintegration.php, version 2.6.1 BETA:
Code:

$mailmessage = preg_replace($pattern, $replace, $mailmessage);
Insert the following code after line 264:
Code:

                                        if ( $userid ) {
                                                $getlastpost = $vbulletin->db->query_first("
                                                        SELECT lastpostid
                                                        FROM " . TABLE_PREFIX . "user
                                                        WHERE userid = $userid
                                                ");
                                                $lastpostid = $getlastpost['lastpostid'];
                                                // lastpostid is not always updated
                                                if ( !$lastpostid ) {
                                                        $getlastpost2 = $vbulletin->db->query_first("SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid = $userid ORDER BY dateline DESC, postid DESC LIMIT 1");
                                                        $lastpostid = $getlastpost2['postid'];
                                                }
                                                if ( $lastpostid ) {
                                                        $gettext = $vbulletin->db->query_first("
                                                                SELECT pagetext
                                                                FROM " . TABLE_PREFIX . "post
                                                                WHERE postid = $lastpostid
                                                        ");
                                                        $pagetext = $gettext['pagetext'];
                                                        $pagetext_comp                = substr( $pagetext, 0, 100 );
                                                        $mailmessage_comp        = substr( $mailmessage, 0, 100 );
                                                        if ( $pagetext_comp === $mailmessage_comp ) {
                                                                imap_delete($mailbox,$msgno);
                                                                continue;
                                                        }
                                                }
                                        }


Bob Ricci 04-06-2009 11:53 PM

But does this run on vb 3.8.1?

Bob Ricci 04-06-2009 11:55 PM

One more thing... I seriously think that this should be a native feature of vB. When we try to sell vB to our clients they say that they can use Yahoo for free AND Yahoo emails them a digest daily, or they can get instant replies. The same with chat. Integrated and native to vB.

toivo 04-07-2009 12:13 AM

Quote:

Originally Posted by Bob Ricci (Post 1785431)
But does this run on vb 3.8.1?

The code to eliminate duplicate email messages has been tested with 3.6.8.

SDonkey 04-07-2009 05:33 AM

I'm using v3.82 with this v2.6

Once it was working but stopped after few hours.

Re-installed. Working again and stopped.

Any ideas?

SDonkey 04-10-2009 06:21 AM

After pressing run in the Scheduled Task. (Email Integration).

I got some errors in it.

So I edit in php.ini

Max post is 32mb and max upload is 32mb

Restart server. Now I got all working perfectly.

Each email create no larger than 20mb of storage so you don't get overload in php's memory which is 32mb max. (You may increase php memory but not recommended)

After next 3 days, it still showing new posts.

Great stuff! :)

lbernstein 04-15-2009 05:38 PM

vB 3.8.2 EI 2.6.1

I'm able to receive posts going from the forum to email, but not the other way. Can anyone help point me to where I might be to fix the reply problem. I have set up individual emails for each forum and am able to receive posts via either POP3 or IMAP.

Thanks for any help.

SDonkey 04-26-2009 02:01 PM

Just one thing.

Everything seems working perfect on v3.82 using this v2.6 (not beta)

I've adjust the vbulletin to moderate posts. The email integration overrides it.

So be careful for the spam posters sent email into forums still appear published without any moderate posts. Should these posts goes to pending posts where the vbulletin admin panel set to moderate posts for all.

Ta.


All times are GMT. The time now is 04:17 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.04819 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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