Re: [courier-users] Rerun .mailfilter?

2017-07-15 Thread Sam Varshavchik

Lucio Crusca writes:


Hello,

I've just edited my .mailfilter. Is it possible to run it once again for  
every already delivered message in my INBOX root maildir only, so that  
maildrop moves my messages in the respective new subfolders, according to  
the new .mailfilter rules?


There's no automatic way to do it. But, what you can do is manually move all  
messages from INBOX to a temporary directory, and then have a short script  
run maildrop in a loop, for each message on its standard input.


Something like:

cd $HOME
mkdir inbox.tmp
mv Maildir/cur/* inbox.tmp
for f in inbox.tmp/*
do
  maildrop <$f
done



pgp0GL1B_qYFP.pgp
Description: PGP signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Rerun .mailfilter?

2017-07-15 Thread Lucio Crusca

Hello,

I've just edited my .mailfilter. Is it possible to run it once again for 
every already delivered message in my INBOX root maildir only, so that 
maildrop moves my messages in the respective new subfolders, according 
to the new .mailfilter rules?


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users