vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Email Integration (New Threads/Replies by and through email!) (https://vborg.vbsupport.ru/showthread.php?t=169247)

SamirDarji 08-24-2009 06:01 PM

If there is a way to modify a user's subscriptions via the admincp, then you could do that. Other than that it would require an SQL query.

rugby 09-04-2009 11:58 AM

i would like to know if this mod will also work for forwarding and replying pm's or is it only for new threads and replies?

SamirDarji 09-04-2009 05:34 PM

Just threads and replies. And only for specific forums that you set up.

ilanyon 09-12-2009 06:40 AM

FIXED ISSUE - REMOVED SOME OF THE BLOCKED SUBJECT TEXT - MUST HAVE HAD SOMETHING IN THERE THAT THE SYSTEM DIDN'T LIKE


Hi and thank-you for a great mod.

I have a problem though...

I have installed and gone through all of the instructions but the mail in not appearing in the forum.

I can post to the forum and the system e-mails out. I can send e-mails to the e-mail account (gmail) and the system runs the cron job okay and cleans out the inbox of gmail, but nothing is then posted to the forum...

I think that I have done everything as I should...and now I'm at a bit of a loss...

Any help/suggestions would be very much appreciated! :p

Cheers,

Ian

toivo 09-12-2009 11:17 PM

Hi,

Our Microsoft Exchange Server will be decommissioned and therefore I tested accessing the mailbox in a Qmail server, running Courier IMAP which does not seem to be the latest version. Emails sent from Gmail which worked in Exchange were suddenly deleted but not posted. This happens because the From: header is presented to the PHP application by this particular IMAP server in the format firstname lastname <mailbox@gmail.com>, instead of the usual format mailbox@example.com.

Here is a fix. Replace the lines 135 - 138 of emailintegration.php
Code:

if ($vbulletin->options['ei_strict'] == 1 OR !$fromaddress)
                {
                        $fromaddress = $letter->sender[0]->mailbox ."@".$letter->sender[0]->host;
                }

with the following:
Code:

// 20090909 fix empty $fromaddress, Gmail from: header in Qmail/Courier IMAP
                //if ($vbulletin->options['ei_strict'] == 1 OR !$fromaddress)
                if ($vbulletin->options['ei_strict'] == 1 OR $fromaddress === '@')
                    {
                        $fromaddress = $letter->sender[0]->mailbox ."@".$letter->sender[0]->host;
                    }
                if ( $fromaddress === '@' ) {
                    $from_pattern = "/^.*<(.+)>$/"; // extract email address from < >
                    $found = preg_match( $from_pattern, $letters[$i]->from, $from_matches );
                    $fromaddress = $from_matches[1];
                }


toivo 09-22-2009 12:50 AM

If your users send replies to your forum mailbox from Lotus Notes, you would have noticed that each HTML link embedded in the message generates an attachment ~~DLNKn.URL where n is a sequence number starting from 0. This patch discards those attachments.

Find the following from line 734:
Code:

// save attachments in database
Add above it:
Code:

// ##### START MOD skip link attachments from Lotus Notes #####
                if ( preg_match( "/^~~DLNK[0-9]*.URL$/", $filename )) {
                                continue;
                }
// ##### END MOD  skip link attachments from Lotus Notes #####

Find the following from line 1322:
Code:

// save attachments in database
Add above it:
Code:

// ##### START MOD skip link attachments from Lotus Notes #####
                if ( preg_match( "/^~~DLNK[0-9]*.URL$/", $filename )) {
                                continue;
                }
// ##### END MOD  skip link attachments from Lotus Notes #####


toivo 09-23-2009 08:37 AM

I have just posted a patch to Email Integration Modification to support moderated forums, at https://vborg.vbsupport.ru/showthrea...151222&page=67

Toivo

joyfulmiller 09-23-2009 12:09 PM

Is there a way to modify this mod so that the instant notification and full text emails works, but the replying by email is NOT included? I'm interested in only the full text and instant notification features and would like to modify the email itself to remove the reply sections as well as change the name of the option in the subscription drop down menu to "Instant Notification with Full Text". Is this possible? If so, is there a way I can do make the changes myself?

SamirDarji 09-24-2009 03:05 AM

Quote:

Originally Posted by toivo (Post 1889312)
I have just posted a patch to Email Integration Modification to support moderated forums, at https://vborg.vbsupport.ru/showthrea...151222&page=67

Toivo

Awesome! Will this work for both 3.6.x and 3.7.x based forums? Also, thank you for all the fixes you've posted above.

toivo 09-24-2009 03:39 AM

Quote:

Originally Posted by SamirDarji (Post 1889751)
Awesome! Will this work for both 3.6.x and 3.7.x based forums?

I presume so, based on Email Integration working in both. I have only tested it in 3.6.8.

Cheers.

BucWiLd 10-06-2009 10:10 PM

really wish this was available for 3.8>

angeljs 10-08-2009 02:33 PM

Hi, I wonder if someone could help me with this problem. I'm trying to run the setup script but keep getting an internal server error

Does the internal server error mean there is a chmod error somewhere?

Edit: Must have been a glitch on the server at it's working ok now.

angeljs 10-08-2009 07:32 PM

Is there a way to tweak the cron job settings so this works every 5 minutes? I've tried setting it for every minute, but it doesn't work. It works when I run the job manually, but nothing seems to happen when I just leave it, so was wondering if tweaking the cron jobs may help.

toivo 10-08-2009 09:37 PM

Quote:

Originally Posted by angeljs (Post 1896781)
Is there a way to tweak the cron job settings so this works every 5 minutes?

Have a look at the script in post #898 at https://vborg.vbsupport.ru/showthrea...151222&page=60.
The script is scheduled to run on a different server. It accesses the home page of the forum and triggers the scheduled jobs to run even when the forum has a quiet period with only a few visitors.

rlopez 11-10-2009 04:19 PM

Where is the template for the email that this mod sends out stored? I would like to modify this template.
Thanks

lbernstein 11-10-2009 04:31 PM

Help!!!
I'm getting what seems like random occurance of duplicate posts to the forum as well as emails out. I can stop the problem if I close the forum, but it got so bad yesterday I had to disable the mod. Can anyone give me a pointer on what I can do?

I'm running vBulletin 3.8.2 and EI 2.6.1

Thanks

www.ambersight.com/forums

toivo 11-10-2009 06:21 PM

I am using 3.6.8 with this mod. The only problem I have experienced happens when someone has an auto-reply rule which does not exclude the forum email address and the out-of-office message starts bouncing back and forth and it gets propagated to everyone. I managed to fix that through code that compares the incoming message with the last post from the sender.

Do have a mail server which allows you to create a rule which copies each incoming message to a separate folder? Then you can check if the duplicated messages are triggered by the same message being received twice.

toivo 11-10-2009 10:34 PM

Quote:

Originally Posted by rlopez (Post 1912448)
Where is the template for the email that this mod sends out stored? I would like to modify this template.

The email templates can be found in the phrase table through this query:
Code:

SELECT * FROM `phrase`
WHERE varname LIKE 'ei_notify%' AND fieldname LIKE 'email%'

The full list includes a few additional templates for error notifications etc:
Code:

SELECT * FROM `phrase`
WHERE varname LIKE 'ei_%' AND fieldname LIKE 'email%'


toivo 12-08-2009 09:44 PM

Quote:

Originally Posted by lbernstein (Post 1912450)
I'm getting what seems like random occurance of duplicate posts to the forum as well as emails out. I can stop the problem if I close the forum, but it got so bad yesterday I had to disable the mod. Can anyone give me a pointer on what I can do?
I'm running vBulletin 3.8.2 and EI 2.6.1www.ambersight.com/forums

I upgraded my test forum to 3.8.4 which went all right after editing class_mail.php, as instructed in step 4 of INSTALL.TXT.

When I sent two messages from the same email address and ran the Email Integration from the Scheduled Task Manager, an error message was displayed:
Quote:

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_Thread_FirstPost in [path]includes\class_dm.php on line 810
#0 vb_error_handler(256,
Both messages remained in the mailbox but the first message had been posted to the forum. The next time the cron job was run, the second message was posted and both messages were deleted from the mailbox. Please note that duplicate messages were not sent to the members, because my earlier fix to EI Mod discards duplicate posts: https://vborg.vbsupport.ru/showthread.php?t=151222&page=64

Had I not had that fix implemented, at least one of the messages would have been posted and broadcast twice.

lbernstein 12-09-2009 05:54 PM

Is it possible to turn off sending emails to an individual user from the Admin Control Panel?

toivo 12-09-2009 06:41 PM

Quote:

Is it possible to turn off sending emails to an individual user from the Admin Control Panel?
Go to Forum Manager and look up the forum that your EI Mod is associated with to get the usergroup ID. Go to Usergroup Manager and find out the name of the usergroup. Then go to the User Manager, look up the user and de-select the usergroup. That will remove the user from among the recipients and senders of emails to the forum with EI Mod.

dvsDave 12-15-2009 12:47 PM

I have google running my mail for my domain. I can't get the EI to work in pop or IMAP.

server is pop.gmail.com
username is ____________@controlbooth.com
(I've tried all of the POP options)

Can I hardcode the server names into the script to avoid the confusion of gmail vs. controlbooth.com domains?

jdj 01-20-2010 09:15 AM

Will this work for vB4.0? Any reason why not, or if it will work...anything to watch out for?

Cyricx 01-20-2010 01:48 PM

It will not work for vb4.0, too many major code changes, attachment table and such.

I really need to find someone who knows a lot about parsing emails to help out with this mod. I fricken learned php writing this mod with no prior background...

I'm working on a paid modification right now (that doesn't deal with emails.. yay!), so until I finish it, I won't be back to work on EI.

But if anyone knows email parsing and wants to help out, give me a hollar! I will be bringing this up for 4.0 soon. Mainly because the sites I admin on that use this I want to bring them up to 4.0 asap heh :)

toivo 01-20-2010 09:16 PM

The little I know about email parsing I learnt from your mod, but otherwise I will be happy to help testing the new version, especially in Lotus Notes environment :D

Hopefully you will have a chance to look at my patch to support moderated forums, and eventually integrate something similar to the new version: https://vborg.vbsupport.ru/showthrea...151222&page=67

Piggo 01-20-2010 11:22 PM

I'm also holding off on upgrading to 4.01, as I really need this EI to work.



Any person who is able and willing to help make that happen is a HERO in my book! :)

Cheers,

jdj 01-21-2010 09:50 AM

Hi there

I'm not a developer (still a newbie...deployed my first site last year). I tried this mod on 3.8.2 last year, couldn't get it to work (emails kept going round in a loop) and stopped trying when I discovered 4.0 was on the way. Presently I'm in the process of testing out 4.0 with a view to moving my 3.8.4 site to 4.0 soon. Always intended to try again with EMI as I think it's a great idea. Suspect you did a good job with it but couldn't tell.... :) Possibly my failure to get it to work was my ignorance.

Whilst I'm not a developer I can probably find someone who knows something about parsing emails if that's what the problem is. Question is though, just to break down' what's required, looking at it as a project, what do you think are the key things that would have to be changed to get it to work with 4.0? I know that there's been some criticism of 4.0 but having had a look at it over the last few days I can see it's a better product and despite my own limitations I seem to be able to work it. So that's where I think the future of EMI is.

If I can get some idea of what's required I might be able to go and get some help to fix it.

Cyricx 01-21-2010 01:32 PM

The key to the product in general, not in regards to 4.0 but the only spot that has problems I can find work arounds for is the email parsing.

Pulling the messages and attachments out of emails and making them clean... I end up fiddling around with code til something works, but with so many email browsers and formats out there and not knowing anything about email parsing.... it's total hit and miss.

Regardless, even at its current sluggish state, I'll have a 4.0 version made and will include the patches and fixes others have written like toivo into it in the near future.

Can't say how near as the event attendance and payment mod I'm working on needs to be updated to 4.0 first.

amphicar770 01-21-2010 04:47 PM

Quote:

Originally Posted by Piggo (Post 1961810)
I'm also holding off on upgrading to 4.01, as I really need this EI to work.



Any person who is able and willing to help make that happen is a HERO in my book! :)

Cheers,


I am also holding of on upgrade too 4.x until this mod is available. My users would revolt without it!! It is a shame that the folks at VB are stuck in the past and can not see how times have changed as have the way people collaborate in social networks. I am glad to see Cyricyx will be making a 4.x version of this mod available, I was really worried that it had been abadoned.

In any event, I think the best way to help make this happen and be a hero is to contribute to Cyricx's efforts via donations. I can only begin to imagine how many hundreds of hours have been invested in this program. Although I have contributed more than once in the past, I will take the lead by making another donation today!

Thanks,

Mike
http://www.amphicar770.com

testbot 01-30-2010 06:41 PM

anyone know the status of this for vb4? i will be glad to donate if we get some kind of eta.

jdj 02-01-2010 04:44 PM

I remain interested in EMI, but I also deployed vB4.0 last week and I'm just getting to grips with it. The threads seem to have RSS feed buttons on them which you can just click on. I haven't had a chance to play with these yet but presumably you can just set them up to feed what's circulating on a particular forum to your inbox. Anyone know whether you could design a mod or take part of EMI to reply to a forum in response to something being delivered from a RSS feed rather than starting again from scratch?

JJ

Cyricx 02-01-2010 05:00 PM

I've got a private mod (not related to EMI) that I've got to finish first, but I'll post as soon as I start upgrading this to vb4.0 which will be soon because I want to get my forums up to 4.0 too :)

jdj - The issues that I battle through are all related to processing replies from emails as they come in. So the RSS function as they go out wouldn't help with the problem spots at all.

testbot 02-09-2010 05:15 PM

Quote:

Originally Posted by Cyricx (Post 1972329)
I've got a private mod (not related to EMI) that I've got to finish first, but I'll post as soon as I start upgrading this to vb4.0 which will be soon because I want to get my forums up to 4.0 too :)

jdj - The issues that I battle through are all related to processing replies from emails as they come in. So the RSS function as they go out wouldn't help with the problem spots at all.

how's this going? :D

toivo 02-11-2010 08:24 PM

Here is a quick-fix of patches to EI Mod to support moderated forums, cloned from the existing code in EI Mod. The patch modifies emailintegration.php and two of its plugins, adds two custom hooks to moderate.php and installs a product with four plugins.

In limited testing under 3.8.4 this patch allowed moderation from the Admin Control Panel, Moderator Control Panel and from inline moderation.

The only differences to the earlier version tested in 3.6.8, available from https://vborg.vbsupport.ru/showthrea...151222&page=67, are the two INSERT statements in the installation instructions in the file Install.384.txt.

Toivo

jdj 02-15-2010 10:40 AM

This may be a bit convoluted, but if this mod works with 3.8.4 is there a way to set up a "dummy" or "server" installation of 3.8.4 to run EMI and "share" the posts with an installation of 4.0? I mean, is it possible to get the two installations to connect to the same MySQL database?

JJ

kevinh 02-16-2010 09:11 PM

I'm trying to get some outbound mail delay issues resolved and the guys who look after my server need to know whether EI sends mail using smtp authentication or just using the mail() php function?

I'm not a developer so I don't really know. Can someone please advise :)

testbot 02-16-2010 09:27 PM

i haven't looked at the code and i'm not the developer for this mod but i would guess that it uses vbmail which is a vbulletin mail function.

toivo 02-16-2010 10:07 PM

If vBulletin Options - Email Options - SMTP Email has this explanation:
Quote:

Set this option to yes to use an SMTP server rather than the internal PHP mail() function.
EI Mod uses the standard vbmail() function which selects one of the following, depending on the configuration in SMTP Email:
  1. vB_SmtpMail = SMTP wrapper
  2. vb_Mail = PHP Mail() function
These classes can be found in includes/class_mail.php.

kevinh 02-16-2010 10:42 PM

Many thanks guys, that's exactly what I needed to know :)

I had forgotten about that batch sending feature. When mail is set to be sent in batches, does anyone know what the delay is between batches?

toivo 02-17-2010 06:49 PM

The processing of the mail queue is triggered by each rendered page. The function exec_mail_queue() is called from exec_shut_down() close to the bottom of includes/functions.php.


All times are GMT. The time now is 11:58 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.01626 seconds
  • Memory Usage 1,848KB
  • 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
  • (8)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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