vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB POP3 / IMAP Email Client 1.4 - Web-based access to POP email accounts (https://vborg.vbsupport.ru/showthread.php?t=50783)

jbear6 04-17-2003 01:30 PM

Quote:

Today at 05:29 AM DaveRobbo said this in Post #199
The serious problem is to do with "Who's Online" locations ... when I first log into a POP3 mailbox, Who's Online shows me as "unknown location - email.php" .. and a long session ID string. And this link is clickable! If someone were to click that link, would they get into my mailbox?
Dave

I think only the Admin (and maybe Mods) can see the "Unknown Location" link on WOL. A regular registered member will see "Main Index" as the location of the person using email.php.

Jbear6

DaveRobbo 04-17-2003 07:29 PM

Thank you Jbear ... I hoped that was the case ... but I was looking for confirmation.

It may still be a useful addition to Erwin's hack to provide specific instructions on how to add the email.php to the "Who's Online" locations ... thx Kushti - I knew where the "how to" was .. I just don't find it terribly easy reading

Erwin 04-18-2003 01:10 AM

Install Firefly's "Who's Online Location" hack - it lets you add other files to Who's Online using your Admin CP. I use it all the time, and it saves you from hacking online.php all the time. :)

DaveRobbo 04-18-2003 06:44 AM

Thank you Erwin :)

Any comment on the other points I raised?

solent 04-18-2003 09:00 AM

i have the same proplem as most of the ppl had with the imap_function but then i re-compiled my php with imap enabled and it worked liked a charm.

ppl that still have the impa_function problem it will be a good idea to contact your host to re-compile php with imap enabled.

excellent hack dude.

very nice works

thanks very much

Erwin 04-18-2003 03:36 PM

Quote:

04-17-03 at 08:29 PM DaveRobbo said this in Post #199
The second problem I'm noticing is that when I actually view a message, i seem to get everything twice - right down from my forum header to footer immediately after the message (i.e. header, mail body, forum footer, header, message and footer again)

Also if the email has stationary (html backgrounds) this stationary seems to be used in my forum header too! A bug in the html mail viewer maybe?

Mmm... it's another server-specific problem - this hack is very sensitive to individual server setups, etc... I don't really understand why to be honest. What browser did you use? Does it happen with another browser? The only thing to do is to experiment with the hack, change the cookie/ sessionhash settings a bit, see if it helps. :)

bandersen 04-19-2003 12:54 PM

I changed server to someone that compile IMAP (venturesonline) - and the hack works like a charm!

vB-Host.com 04-20-2003 10:54 AM

Nice job! Easy install!

http://www.vb-host.com/webmail-shot.gif

Can you tell me how I can make the mail server a hidden field so it can't be changed to what ever so it can be used only by my customers?

vB-Host.com 04-20-2003 10:58 AM

also can pop3 be a hidden field too? so it would be two fields only showing... user and pass. It gets it is a pop3 server and the mx of the server via hidden fields...

Grunt 04-20-2003 11:05 AM

check through the pages of the thread...i asked the same thing and got an answer

vB-Host.com 04-20-2003 11:14 AM

Great! Thanks for the heads up Gruntie!

:Judge: 05-01-2003 02:14 AM

Quote:

Fatal error: Call to undefined function: imap_open() in /home/judge/public_html/forums/email.php on line 618


EDIT: I guess I do not have IMAP now maybe?

vB-Host.com 05-01-2003 02:56 AM

[QUOTE]
Quote:

Fatal error: Call to undefined function: imap_open() in /home/judge/public_html/forums/email.php on line 618

Any idea what this may be?
The error is because your server you are hosting on does not support IMAP....

:Judge: 05-01-2003 02:59 AM

Yeah I thought that was it, I missed the one post where someone else had the same error.

Contacted server and IMAP should be good to go in about 30 mins.

Thank you for the quick reply :D

vB-Host.com 05-01-2003 03:03 AM

Quote:

Today at 08:59 PM :Judge: said this in Post #214
Yeah I thought that was it, I missed the one post where someone else had the same error.

Contacted server and IMAP should be good to go in about 30 mins.

Thank you for the quick reply :D

no prob :banana:

Myself and a few customers are using it.. It is pretty cool... It's not hivemail.. but again it's free ;)

TMM 05-01-2003 03:08 PM

Nice hack...

Sure Hivemail seems nice, but for those offering POP e-mail or planning too, this should be great!

Thanks...

gmarik 05-02-2003 05:15 AM

So is it for only one account or can I have several users for it?
Can it be interated with HiveMail, have you thought about it?

bart 05-07-2003 11:03 PM

The open-stream-error:

Ik took me some hours to figure it out, but this seems to be the solution:

$MAILSERVER="{my.server.com:143/imap/notls}INBOX";

or

$MAILSERVER="{pop.server.com:143/pop3/notls}INBOX";

$mbox = imap_open ($MAILSERVER, "username", "password");

Then, it works!!!

It happens when you use a self-signed certificate. The notls-thing tells it not to check for it.

Hope this will lead to a new version?

Jim Mayhugh 05-08-2003 06:56 PM

I run a number of qmail servers that are set up with virtual accounts. In order to access the account, you have to enter the full e-mail address, ie mymail@mymail.com as the username, as well as the server address. This causes the address in the "From:" header and a few other places to show up as mymail@mymail.com@mymail.com.

Here's how to correct that:

1) Look for:

//CHANGE SETTINGS ABOVE//

Below it add:

$email_regular_expression="^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~ ])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~ ]+\\.)+[a-zA-Z]{2,4}\$";


2) Replace

if ($session_username) $errormessage .= " - ".$session_username."@".$session_server;

with


if (eregi($email_regular_expression, $session_username))
{
if ($session_username) $errormessage .= " - ".$session_username;
}
else
{
if ($session_username) $errormessage .= " - ".$session_username."@".$session_server;
}



3) For each single line occurence of
$generated=$session_username."@".$session_server;

(there are two), replace it with

if (eregi($email_regular_expression, $session_username))
{
$generated=$session_username;
}
else
{
$generated=$session_username."@".$session_server;
}


That should take care of it.

allan grossman 06-12-2003 12:13 AM

Quote:

04-01-03 at 08:41 AM D|ver said this in Post #170
wow what a great hack :)

but i get always this error message:


does anybody know, what i can do know ?

imap is installed and configured with php

I get almost exactly the same error but on line 618:

Warning: Couldn't open stream {pointbeing.com:110/pop3}INBOX in /usr/www/bassforum/email.php on line 618

I own the mail and web server. Neither pop3 nor IMAP work. IMAP is compiled into php (Squirrelmail runs flawlessly) username, password and mail server are correct. vB version is 2.3.0

Any ideas? I just downloaded and installed this about half an hour ago so I'm pretty sure it's the current version :)

ajk 06-15-2003 08:28 AM

Is there a syntax to force them to use one server?
Example: mail.myserver.com?

Thanks

Erwin 06-15-2003 08:33 AM

Yes there is, and the answer to that is somewhere in this thread already. :)

Ian Cunningham 06-15-2003 12:06 PM

Is there any way so that when a user opens email.php they will automatically be logged into a specific account (i.e predefined $hosts, $pass, $user). Basically, I want all of my mods to only be allowed access to the file and for it to check a single account for news.

Erwin 06-16-2003 01:49 AM

Quote:

Yesterday at 11:06 PM Ian Cunningham said this in Post #223
Is there any way so that when a user opens email.php they will automatically be logged into a specific account (i.e predefined $hosts, $pass, $user). Basically, I want all of my mods to only be allowed access to the file and for it to check a single account for news.
Not hard to do at all.

Edit email.php and find:

PHP Code:

        $errormessage .= "<tr><td align=right><normalfont>Username: </normalfont></td><td><input TYPE=text NAME=user value='$user'></td>\n";
        
$errormessage .= "<tr><td align=right><normalfont>Server: </normalfont></td><td><input TYPE=text NAME=host value='$host'></td></tr>\n";
        
$errormessage .= "<tr><td align=right><normalfont>Password: </normalfont></td><td> <input TYPE=password NAME=pass></td></tr>\n"

Replace with:

PHP Code:

$user "Username";
$host "mail.server.com";
$pass "Password";
        
$errormessage .= "<tr><td align=right> </normalfont></td><td><input TYPE=hidden NAME=user value='$user'></td>\n";
        
$errormessage .= "<tr><td align=right></td><td><input TYPE=hidden NAME=host value='$host'></td></tr>\n";
        
$errormessage .= "<tr><td align=right></td><td> <input TYPE=hidden NAME=pass value=$password></td></tr>\n"

Edit the values here:
$user = "Username";
$host = "mail.server.com";
$pass = "Password";

It should work... Feel free to edit that bit of code so that it looks the way you want it to.

Ian Cunningham 06-16-2003 10:08 AM

cheers :) Thats what I am using at the moment, but is there any way to skip this section automatically, i.e it just logged in?

Thanks :)

TheVoidz 06-16-2003 05:02 PM

Hmmm I got a small problem, Recieving emails works fine but I can't send them, any ideas? oh ya and theres no errors.

Ian Cunningham 06-19-2003 11:09 AM

This doesnt seem to work with the latest version of PHP... any ideas? I got this help from my hosts.

Quote:

PHP has been upgraded and you may need to connect to the mail server in a diferent way. With the latest version of PHP, you need to connect to the mail server using;

$inbox = @imap_open ("{server.com/pop3:110/notls}", $username, $password);

Erwin 06-19-2003 11:35 AM

This definitely works for the newest versions of PHP - I know because I use the latest version.

PHP needs to be compiled with IMAP support. :) That's missing from your host. Your host needs to recompile PHP with IMAP for this to work.

Ian Cunningham 06-19-2003 11:40 AM

ah, ok. The reason I told my hosts it didn't work was because after I have submitted the form I just end up on a server not found page - and this only happened after the PHP update

Ian Cunningham 06-19-2003 11:42 AM

looks like it is compiled : http://juliet.dnsaction.com/serverphpinfo

Ian Cunningham 06-19-2003 04:03 PM

damnit - I still can't get it working, I just get "server not found" :(

Erwin 06-20-2003 02:21 AM

You're right, your PHP has IMAP. Make sure your host is not using a firewall that blocks the port that IMAP uses... I can't remember what it is exactly.

allan grossman 06-20-2003 09:32 AM

It's port 143.

Ian Cunningham 06-21-2003 07:49 AM

Checked that too - damn this is strange!!!! Just as I had integrated it to server all my news posts too - grrrr :(

Mr. Brian 06-24-2003 09:01 PM

That's what I'm looking for..

Thumbs up!

Ninth Dimension 06-24-2003 11:52 PM

very very cool, nice little addition to the forum :) I'm not sure if anyone would ever use it, but it's a nice thing to have anyway :)

you once again jave out done yourself, the only thing i would say is that some of the HTML and design could be tided-up a little, but ignoring this, very well done :)

Evil Chris 07-01-2003 10:52 AM

Erwin, what are the known security issues with using this hack?

Erwin 07-01-2003 11:53 AM

Quote:

Today at 09:52 PM Evil Chris said this in Post #237
Erwin, what are the known security issues with using this hack?

None known. :) But I can't guarantee anything - use this at your own risk. As far as I know, it's secure. It uses your normal POP username and password, so it's as secure as that.

Sliderx 07-01-2003 04:05 PM

Warning: imap_open(): Couldn't open stream {pop.wanadoo.fr:110/pop3}INBOX in /home/******/www/forum/email.php on line 620
i look at the line but i just see

if ($opt=="POP3") $mbox = imap_open("{".$host.":110/pop3}".urldecode($folder), $user, $pass);

where the problem ?

Erwin 07-01-2003 09:27 PM

Wrong username or password, or mail server name. That's usually the cause of that error.


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.01477 seconds
  • Memory Usage 1,831KB
  • 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_php_printable
  • (9)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