vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   WMail - a POP3/SMTP Webmailer for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=115597)

Hellcat 05-14-2006 10:00 PM

WMail - a POP3/SMTP Webmailer for vBulletin
 
What is this?
---------------

WMail is a "webmail client" - a front end, like a mail tool installed locally on your PC, for using POP3/SMTP mailboxes.

In short:
WMail adds POP3/SMTP access to vBulletin.

A live demo can currentliy be found on my testing board here:
http://vbdev.area-42.net/wmail.php


Key features:
  • The obvious: Getting mailbox content, reading mails from every POP3 mailbox and sending mails through any SMTP server (configurable in the user options)
  • written from scratch, spezificially to be used with vBulletin 3.5.x - not a port of something
  • fully phrased and templated down to the last bit
  • Full multipart support for downloading (and sending) attachments
  • When reading mail the mail text is parsed for BB-Codes, so you get the graphical smillies from the forum, text formatting and URLs automatically become clickable links
  • When replying to, or forwarding, mail the text of the original mail is quoted, propper quotemarks are added and a quote-header is added (customizable via template)
  • various options for admin and users to customize the webmail client
  • Does NOT require any special modules to be compiled into your PHP installation (like the IMAP libraries)
    (for techies: this uses basic socket connections instead of special PHP function calls)
  • Admin can override certain aspects of the user config (forcing to use a given mailserver, force using forum email address and such)
  • Write your mails using vB's WYSIWYG editor
  • buildin (yet simple) addressbook for your E-Mail contacts
  • Read/Unread markings - unread mails are highlighted, options for "mark selected read", "mark all read" and "mark selected unread"
  • custom hooks to make it easy to develop addons for it
  • automatically adds links to the webmailer in "Quick Links" menu, navbar and UserCP. Usualy no template edits needed when using default ones (can be disabled for each link in admin options)

Planned features:
  • Support for multiple config sets per user
    (and so multiple mailbox accounts that can be querried)
  • Sort mails into folders
  • User configurable filters (for automatically sorting mails into folders)
  • Preview of mailtext in inbox view (bellow subject)
  • Forward mails as PM / Forward PMs as mail
  • Reply to threads and PMs by mail
  • Give/Provide your members an own eMail adress and inbox on your forums!
    • Members can recieve and send mails as "username@forumdomain.tld" without the need for an own POP3 account anywhere
    • Admin only needs ONE "real" POP3 box as "catch all".

Installation
--------------

Level : EASY
Duration : a minute or so
Files to upload : yes (11)
Products to import : yes (1)
Templates to edit : usually none


ChangeLog
===========

1.00 - first final release
  • Fixed some minor bugs
  • Login details are no longer stored as plain text in the database (*see note bellow!)
  • Added option to save login details in a cookie on the users local computer instead of storing them in the forum's database
* Note on storing the login details in the database:
The login details are only base64 encoded when stored in the database.
A more secure encryption would make no sense anyway, the login details must be decrypted to be passed to the POP3/SMTP server - one well placed line of additional code in the POP3 or SMTP class could save the decrypted info anywhere the admin likes.
This "encoding" is only meant to prevent login details to be read (in plaintext) when doing maintanance to the database and stepping over it.
For fully securing the login details the "Save in cookie" option has been added.

Known Issues:
  • On some installations mass deletion of mails (via "Delete Selected" from the inbox view) does not delete all mails
  • Sometimes you get "-4 mails in inbox" - reloading the page then shows the correct inbox again
Besides of those two issues, that do not really break the function of the webmailer, it seemed to run pretty stable so far - that's why I decided to release 1.00 without having them resolved.


(more changelog entries in the readme)

____________________
This vBulletin extension is FREE! Be welcome to download and use it. :)
However, if you feel like supporting further development any donation is appreciated :bunny:
http://files.area-42.net/ppbtn.gif

Roms 05-14-2006 10:56 PM

Thanks! First install!

BANDiT600 05-14-2006 10:56 PM

Waiting for screenshots... ;)

kurtbarker 05-14-2006 11:01 PM

yaaaaahooooooooooo

thanks mate :D

-=Sniper=- 05-14-2006 11:15 PM

nice :)

Danecookie 05-14-2006 11:15 PM

waiting for screenies

jugo 05-14-2006 11:24 PM

You are truly a gentleman. I started growing more gray hair, waiting for filburt1 to update his Modification which may I add was a paid product.

Thanks a ton bro.

Kihon Kata 05-14-2006 11:25 PM

tagged!

Ntfu2 05-14-2006 11:35 PM

Quote:

Originally Posted by BANDiT600
Waiting for screenshots... ;)



You could always test out a live demo rather then screen shots

http://vbdev.area-42.net/wmail.php

Tralala 05-14-2006 11:38 PM

Wow, this sounds really, really nice. Looking forward to checking it out.

Kihon Kata 05-14-2006 11:40 PM

Quote:

You could always test out a live demo rather then screen shots
Doing some updating....
Be right back..

Daniel 05-14-2006 11:55 PM

Tested it, works great for me. Thanks a lot!

Hellcat 05-15-2006 12:11 AM

Uploaded some screenies :)

Injektilo 05-15-2006 12:20 AM

waiting for any more updates on this...seems very interesting :) great work hellcat

TTG 05-15-2006 12:21 AM

There has been an error while talking to your SMTP server!
Sessionlog follows:


Rcvd: 220-We do not authorize the use of this system to transport unsolicited,
Sent: MAIL FROM:thexxxxxx@xxxxxxx.com etc etc

shame .. could have been useful.

Hellcat 05-15-2006 12:23 AM

@TTG:
Did you set the correct authentication type for your SMTP server?

TTG 05-15-2006 12:24 AM

Quote:

Originally Posted by Hellcat
@TTG:
Did you set the correct authentication type for your SMTP server?

tried them all :D

Hellcat 05-15-2006 12:26 AM

Hmm.... must be a very restrictive SMTP server then :(
Any info on what's required to send through your SMTP? Maybe it's something I can implement :)

TTG 05-15-2006 12:34 AM

Quote:

Originally Posted by Hellcat
Hmm.... must be a very restrictive SMTP server then :(
Any info on what's required to send through your SMTP? Maybe it's something I can implement :)

Posted a query to my host .. I'll let you know when they respond.

Ramsesx 05-15-2006 12:34 AM

Absolutely cool hack hellcat, thank you.
One question, the received messages will be stored encrypted in the database?

Hellcat 05-15-2006 12:39 AM

Quote:

Originally Posted by TTG
Posted a query to my host .. I'll let you know when they respond.

Cool, let me know if there's something that could be done :)


Quote:

Originally Posted by Ramsesx
Absolutely cool hack hellcat, thank you.
One question, the received messages will be stored encrypted in the database?

There are no messages at all stored in the DB - everything stays at the POP3 server and only the data/information required for the current action are retrieved, but not saved.

The only thing that gets stored to the local database is the message ID for all unread messages to be able to handle the read/unread markings.

kurtbarker 05-15-2006 12:59 AM

hey mate, I will be restricting access to the webmail client to paying club members, is there any way I can only show the webmail link in 'UserCP' / 'Quick Links' to a specific usergroup?

Hellcat 05-15-2006 01:05 AM

Hmm.... the links are currently added for any user....

You CAN specify who may use it in the usergroupmanager, all others get the "no permission" message.
Could be used to inspire ppl to become paying members :D

I could add a check for the link insertion if the user may actually use it and not add the links when he has no permission.... yes that could be done :)

kurtbarker 05-15-2006 01:08 AM

thanks mate. I feel that the standard 'no permission' message is messy, doesn't really give a reason, and could be seen as an 'error' as such...

if you could look into it, that'll be great, thanks

Hellcat 05-15-2006 01:16 AM

@kurtbarker:

Here's a quick "hack" for you:

Go to the plugin manager and open this plugin to edit it:
"Template Manipulation (Add WMail Links)"

At the very top, before anything else, add this:
Code:

if ($permissions['wmailpermissions'] & $vbulletin->bf_ugp['wmailpermissions']['canusewebmail'])
{
  // only add the links when the user actually use the webmailer

At the very bottom, as last line, add this:
Code:

}
Now, the links are only added for users who can use the webmailer.
I will include this in the next release and also make an admin option to choose between "Always add links" and "Only add links for users who have permission"

Ramsesx 05-15-2006 01:18 AM

Quote:

Originally Posted by Hellcat

There are no messages at all stored in the DB - everything stays at the POP3 server and only the data/information required for the current action are retrieved, but not saved.

The only thing that gets stored to the local database is the message ID for all unread messages to be able to handle the read/unread markings.

Ok thanks, the only thing I'm not so happy about is that the passwords are stored in the db without encryption.

Hellcat 05-15-2006 01:20 AM

Quote:

Originally Posted by Ramsesx
Ok thanks, the only thing I'm not so happy about is that the passwords are stored in the db without encryption.

I'm not very happy with that as well....
But on the other hand, an untrustworthy admin who want's to see those can get at them even when they are encrypted since the decryption code has to be in the script as well - hashing only will not work because the PW has to be retrieved to be sent to the mailserver....

But I'm open for ANY suggestions here!

kurtbarker 05-15-2006 01:37 AM

thanks Hellcat, haven't installed yet, but will be doing so tonight for sure, thanks for the support, i'll let you know how it goes

Ramsesx 05-15-2006 01:39 AM

Don't have an idea for that my coding skills are 0 :(
But found a bug (?)
The first 98 mails are showing correctly, after sometimes there's only the date and size visible (screenshot).

Hellcat 05-15-2006 01:50 AM

Hmm, weird thing.... that can happen when the connection to the POP3 server breaks up while getting the mail headers....

I should add some kind of handling of that.... at least some sort of notice that something went wrong there.

Did you change the server timeout? If so, try raising it again.

I'll definately add something for this situation! :)

Roms 05-15-2006 01:57 AM

First of all, great job on this. I like it so far. :)

I think I'm missing a Phrase in the global settings of the ACP. It also doesn't save my settings in the settings area of the wmail.php "sender Settings" area (ie: Use forum E-Mail address, Use forum username, Use forum signature)

Thanks,
Roms

Hellcat 05-15-2006 02:13 AM

Quote:

Originally Posted by Infantrymen
First of all, great job on this. I like it so far. :)

I think I'm missing a Phrase in the global settings of the ACP. It also doesn't save my settings in the settings area of the wmail.php "sender Settings" area (ie: Use forum E-Mail address, Use forum username, Use forum signature)

Thanks,
Roms

Whooops.... That should be "Use forum signature"
[high]* Hellcat scribbles on buglist
[/high]

And as long as the overrides are enabled it doesn't save the user settings for those options, indeed.

Try disabling the global overrides seen in the screenshot and try saving your user settings again.

Roms 05-15-2006 02:19 AM

Quote:

Originally Posted by Hellcat
Whooops.... That should be "Use forum signature"
[high]* Hellcat scribbles on buglist
[/high]

And as long as the overrides are enabled it doesn't save the user settings for those options, indeed.

Try disabling the global overrides seen in the screenshot and try saving your user settings again.

Thanks, I'll check it out. :)

apdcanari 05-15-2006 04:18 AM

I have this error....

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

Hellcat 05-15-2006 04:28 AM

Quote:

Originally Posted by apdcanari
I have this error....

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

:eek:
When does this happen?

apdcanari 05-15-2006 04:32 AM

Permissions Usergroups :surprised:

Hellcat 05-15-2006 04:36 AM

When you try to save, or when you open the usergroup permissions?

apdcanari 05-15-2006 04:38 AM

Save Usergroups Permissions

Hellcat 05-15-2006 04:42 AM

That's really weird.... I'm not running own code there, it's all native vB....
I'll look at the permission stuff....

rmxs 05-15-2006 04:43 AM

Ohhhh Thats the Best ext... :)

Installed 10 Times LOL


All times are GMT. The time now is 07:14 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.01486 seconds
  • Memory Usage 1,832KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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