Thursday 18 February 2010

Synchronizing your email client then dealing with duplicate inboxes using thunderbird portable

I wanted to use Thunderbird portable on multiple machines but synchronize all machines. I use Microsoft's live snyc. this worked well until I started getting duplicate mail boxes! To resolve this I have to do two things
1)install Remove Duplicate Messages 0.1.07 not the alternative version.. this didn't seem to work for me.
2)go into Thunderbird and copy all messages from the duplicate folder into the main folder and then just to make sure you don't get mixed up, copy all combined messages into the duplicate folder the desired result would now be to have two folders with exactly the same messages in.
3)repeat this step for in boxes, sent and trash if so desired
4)right click each of the mailboxes and run "remove duplicates" continue this through all folders
5) the final step close Thunderbird and open the following \Data\profile\Mail\

your mail box name can be found by right clicking your inbox and selecting properties you should see something like mailbox:////Data/profile/Mail//Inbox in my case my mail box name was pop.iomartmail-2.com

6)Now delete all duplicates you should be left with the following
Drafts
Drafts.msf
Inbox
Inbox.msf
msgFilterRules.dat
popstate.dat
Sent
Sent.msf
Trash
Trash.msf

7)reload thunderbird and you should have just a single mail box!

Hope this helps and feel free to send a comment and I'll do my best to answer it.

Monday 15 February 2010

Installing a webserver on Windows XP the easy way

quite simply go to Microsoft Web Platform Installer http://www.microsoft.com/web/downloads/platform.aspx

this is more for my notes as I forget easily

Sunday 14 February 2010

Sending emails from a form on easyspace when using a windows server

I spent in the region of 5 hours on this one! admittley I was trying every method under the sun be it perl, php, javascript jquery.. anyways I found a very simple method that works

1)go to http://phpformgen.sourceforge.net and create a form, add a page then click on page one and start creating your fields, once you have done this and filled in all the other bits and bobs download the zip folder.

2)Open up the file processor.php and put the following line at the top of script, just under < ? php

ini_set ("sendmail_from","webmaster@MyWebSite.com");


3)Save the file :) and upload the contents to your website content folder and navigate to the www.yoursite.com/form.html file from a browser.

Hopefully you should be up and running.

Err :1045 Access denied for user 'root@localhost'(using password NO)

Wampserver installed, changed your root@localhost mysql password but now can't log into phpmyadmin?

Well I thought I would post this to hopefully help anyone else who has fallen into this trap.

After installing wampserver I had a working webserver, after reading how to secure my wampserver installation as I was using it as a development server that was public facing, One article sugested that I give my sql database a password, which makes perfect sense. Only in doing this via phpadmin and going to privileges changing the root@localhost password to mypassword I found myself unable to get back into phpmyadmin.

The solution was as follows:

Find \apps\phpmyadmin3.2.0.1\config.inc.php
mine was at:

C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php

$cfg['Servers'][$i]['password'] = ”; // MySQL password

Change this so that it’ll reflect your current mysql password.

$cfg['Servers'][$i]['password'] = ‘your_password_here‘; // MySQL password

And don't forget to save!

If you want to secure wampserver look at this article this method of securing wampserver avoids getting locked out and has quite a few other sensible suggestions.

out of coincidence I found after restarting the services I typed in localhost only to be redirected to www.localhost.com. Basically apache wasn't starting despite restarting all wampserver services. The solution was to go into the wampserver console and stop each service mysql and apache and then start apache first then mysql. Thats it!

Here's a picture of the wampserver console where you stop and stop the apache service

this is an image to help resolve an issue on  wampserver when getting Err :1045 Access denied for user 'root@localhost'(using password NO) whilst connecting to myphpadmin after changing your root@localhost password

I have to give credit to rudy.egenias.jr as although his solution was for xampp-1.5.3a it worked for me using wampserver