I have a POP mailbox hosted with a service provider from where I pull up my messages.
I want to set up email clients on two different machine each configured to pull different categories of messages (or rather from different set of senders). How can I create filters (using fetchmail?) such that each client gets only its respective category of messages and flush them while keeping the other messages intact?
One of the system is debian while other is ubuntu-jaunty. I am sure many on the list must have configured something like this and would like to learn from them.
Going through fetchmail manpage while writing this.
Regards,
Nitesh Mistry wrote:
I have a POP mailbox hosted with a service provider from where I pull up my messages.
I want to set up email clients on two different machine each configured to pull different categories of messages (or rather from different set of senders). How can I create filters (using fetchmail?) such that each client gets only its respective category of messages and flush them while keeping the other messages intact?
You can set up Thunderbird on both machines and add your filters to your liking. If 2 or more users share a common mailbox then in all the machines select the option of keeping a copy of messages on the server and deletion after a day or two according to your environment.
On Wed, Apr 28, 2010 at 08:43:51PM +0530, Rony wrote:
Nitesh Mistry wrote:
I have a POP mailbox hosted with a service provider from where I pull up my messages.
I want to set up email clients on two different machine each configured to pull different categories of messages (or rather from different set of senders). How can I create filters (using fetchmail?) such that each client gets only its respective category of messages and flush them while keeping the other messages intact?
You can set up Thunderbird on both machines and add your filters to your liking. If 2 or more users share a common mailbox then in all the machines select the option of keeping a copy of messages on the server and deletion after a day or two according to your environment.
But wouldn't that be duplication of data/bandwidth usage -- both the machines downloading all the messages and then showing the relevant messages? Also one of the machines might not be booting regularly (may be once in a week or two) and the capacity of the remote mailbox is not so large to keep the messages that long. Also I might be using mutt on both the machines.
After going through the manpages of fetchmail and maildrop, I have got a rough idea of how to set this up. Fetchmail has a 'mda' option by which it can send all the mails retrieved from the remote server to a mail delivery agent (e.g. maildrop). Maildrop has a filtering ability by which it reads mail from std. input and sends it to different locations as per the instructions in the filter. So my POA is to set up (on any one of the machines) fetchmail to send the messages to maildrop. Maildrop will segregate the messages, send all the mails for that machine to the local mailbox and forward the messages meant for another machine to a shared location. On the second machine, setup mutt to read mails from the mailbox setup at the shared location.
Well the plan sounds simple, but will need to know how to actually implement it. Any suggestions?
Regards, Nitesh
On Wednesday 28 Apr 2010, Nitesh Mistry wrote:
I have a POP mailbox hosted with a service provider from where I pull up my messages.
I want to set up email clients on two different machine each configured to pull different categories of messages (or rather from different set of senders). How can I create filters (using fetchmail?) such that each client gets only its respective category of messages and flush them while keeping the other messages intact?
Should be straightforward: Get all the mail to one procmail-enabled mailbox and then let procmail do the routing to the two systems, based on whatever criteria you need.
Going through fetchmail manpage while writing this.
Look at procmailrc and procmailex man pages.
If you need a detailed tutorial (or a complete solution), I'm available for my usual token fee.
Regards,
-- Raju