From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Удалить копии из mbox
Date: Wed, 2 Apr 2008 13:39:22 +0300
Message-ID: <20080402103921.GR13528@osdn.org.ua> (raw)
In-Reply-To: <f7a739430804020236y4ee8fb27i22a3ce80125f439c@mail.gmail.com>
On Wed, Apr 02, 2008 at 01:36:38PM +0400, Eugene Prokopiev wrote:
> > > Скажите, а есть простые средства для удаления дубликатов
> > > (критерий - совпадение даты отправки и темы сообщения) из
> > > mbox, или садиться писать на perl/python?
> > formail
> > --- ~/.procmailrc snippet (c) ab@
> > # фильтруем дупы
> > :0 Whc: msgid.lock
> > | formail -D 65536 msgid.cache
> >
> > :0 a:
> > duplicates
> procmail поднимать не стал, сделал
> $ cat mbox.0 | formail -D 65536 msgid.cache -s > mbox.1
> размер mbox.1 оказался немного меньше mbox.0, но сообщения с
> одинковыми Message-ID остались :(
>
> ох, да он еще и поуродовал этот mbox - заголовки от одного
> сообщения, содержимое от другого ...
Вот я тоже последний раз (лет пять тому) без всей остальной
цепочки не справился дупы отбить.
Если тебе одноразово -- может быть быстрее открыть этот mbox
в mutt и сделать D~= (удалить дупы) и $ (синкнуть в файл).
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
next prev parent reply other threads:[~2008-04-02 10:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 9:07 Eugene Prokopiev
2008-04-02 9:10 ` Michael Shigorin
2008-04-02 9:36 ` Eugene Prokopiev
2008-04-02 10:39 ` Michael Shigorin [this message]
2008-04-02 11:28 ` Eugene Prokopiev
2008-04-02 11:37 ` Serge
2008-04-02 11:54 ` Eugene Prokopiev
2008-04-02 12:13 ` Vitaly Ostanin
2008-04-02 13:13 ` Eugene Prokopiev
2008-04-02 13:35 ` [Comm] mutt D~= works on threaded mbox only (was: Удалить копии из mbox) Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080402103921.GR13528@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=community@lists.altlinux.org \
--cc=shigorin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git