Today I had to forward 2200 emails from a mailbox to another address. I looked around a bit to find a way to automate this process but all I could find was how to forward new messages.
That’s easy, just put a .forward file in your home dir with the email where you want to forward and it works.
But to forward already received email, it’s a bit trickier.
I was already using Mutt and I know it is a very powerful tool so I looked a bit more into it.
In order to solve my problem I found the following:
You can Tag many messages with this command:
Then execute one command on all the message tagged with this:
It will then ask you the email address where to bounce all this emails.
Fill it in and off you go. It took 3 minutes to send the 2200 mails. Cool 🙂
Then you can easily delete all these files with this:
sudo apt-get install lamp-server^
Be careful not to delete the ^ character.
This will install:
Login and re-login and re-re-login in phpmyadmin is a huge pain.
Here is the way to extend sessions duration.
Open the file config.inc.php in /usr/share/phpmyadmin or in /etc/phpmyadmin
Add the following line:
And in php.ini, modify the following line:
session.gc_maxlifetime = 86400
You now have 24h sessions.