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.


All times are GMT. The time now is 06:48 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.01525 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)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
  • (2)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