[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] Fetchmail Multiple copies
make the change in .procmailrc to filter on the basis of message ID.
I am attaching a sample .procmailrc file showing how to do it. Below this
you can have all your regular rules/filters.
--Homes.
----.procmailrc
PROCHOME=$HOME/.procmail
LOGABSTRACT=on
LOGFILE=$PROCHOME/log
PATH=/sbin:/usr/bin:/usr/sbin:usr/lib/mh:usr/local/bin
MYADDRESS=root@xxxxxxxxxxxxxx
#VACATION
DUPFILE=$PROCHOME/dups
CACHEFILE=$HOME/cache
CACHESIZE=5000
GARBAGE=/dev/null
#Message ID's checking !
:0 cW:$CACHEFILE.lock
Iformail -D $CACHESIZE $CACHEFILE
:0 a:
$DUPFILE
-----ends here
On Fri, 14 Jan 100 ninad@xxxxxxxxxxxx wrote:
> We use Fetchmail to download mails for all our staff from a common mailbox on
> our remote server. When mails are addressed as CC to multiple people in our
> company, there are as many copies of the same mail in the main mailbox. When
> fetchmail downloads, and distributes the mail, each user gets double the number
> of mails due to his name being present in each of the copies.
>
> Thus a CC to two persons results in 4 mails in each mailbox on our linux
> server. how can we avoid such multiple copies? Is there some way to make linux
> distribute only unique messages?
>
> TIA
> Ninad
>
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available. Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.
>
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.