* Jose Romildo Malaquias ([EMAIL PROTECTED]) [000530 09:35]:
> Is there an easy (and efficient) way of removing duplicated messages from
> my mailboxes (keeping only one copy  of them)? Note that I am talking
> about old messages already saved in the mailboxes, not the new messages
> being delivered now to the mailboxes.

Same way you would for new mail being delivered... run it through
procmail!

use the good ol procmail rules: (see "man procmail")

:0 Whc: msgid.lock
   | formail -D 8192 msgid.cache

:0 a:
   duplicates


Then dump the mailbox through procmail (make sure that nobody will try
to deliver to the mailbox while you're doing this...)

formail -s procmail < mailbox

You probably want to be careful what other procmail rules you have in
~/.procmailrc, since all will be applied.  You probably want to redirect
the output of formail somewhere, as well...

HTH,

jon

-- 
.Jonathan J. Miner------------------Division of Information Technology.
|[EMAIL PROTECTED]                 University Of Wisconsin - Madison|
|608/262.9655                               Room 3149 Computer Science|
`---------------------------------------------------------------------'

 "This must be Thursday," said Arthur to himself, sinking low over his beer,
 "I never could get the hang of Thursdays."
 -- Arthur, on what was to be his last Thursday on Earth.
    From _The_Hitchhikers_Guide_To_The_Galaxy_ by Douglas Adams

Reply via email to