Mark and delete duplicate messages?

91 views
Skip to first unread message

Alexis

unread,
Apr 9, 2015, 12:12:29 AM4/9/15
to mu-discuss

Hi all,

Having been offline for several days, i'm now facing the standard
issue of having a massive number of duplicated messages from my
GMail accounts. (Nb. my setup doesn't involve IMAP access via
offlineimap / mbsync / etc., but POP3 access via getmail.)

Is there some straightforward way i can ask mu4e to trash all
messages that are duplicates?


Alexis.

Dirk-Jan C. Binnema

unread,
Apr 9, 2015, 6:36:35 AM4/9/15
to mu-di...@googlegroups.com
Mu comes with a find-dups script. Make sure you have mu with
guile-support and run 'mu find-dups'. That will list all duplicates.

There's even a '--delete' option to that, which deletes all but one of
the dups (it's fairly new -- be careful).

Regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Alexis

unread,
Apr 9, 2015, 8:01:17 AM4/9/15
to mu-di...@googlegroups.com

Dirk-Jan C. Binnema <dj...@djcbsoftware.nl> writes:

> Mu comes with a find-dups script. Make sure you have mu with
> guile-support and run 'mu find-dups'. That will list all
> duplicates.
>
> There's even a '--delete' option to that, which deletes all but
> one of the dups (it's fairly new -- be careful).

Hi Dirk,

Thanks for your prompt reply!

i'm having trouble getting the find-dups script to work.

My local mu repo's HEAD is commit 646b0656.

Running:

$ ./configure --enable-guile

seems to complete successfully; config.log contains:

configure:16906: checking for GUILE configure:16913:
$PKG_CONFIG --exists --print-errors "guile-2.0"
configure:16916: $? = 0 configure:16930: $PKG_CONFIG --exists
--print-errors "guile-2.0" configure:16933: $? = 0
configure:16971: result: yes configure:16984: checking for
guile configure:17002: found /usr/bin/guile configure:17014:
result: /usr/bin/guile configure:17038: checking for
guile-snarf configure:17056: found /usr/bin/guile-snarf
configure:17068: result: /usr/bin/guile-snarf

Then, running:

$ make install

completes successfully also.

However, when i type:

$ mu find-dups

the output i get is:

;;; note: auto-compilation is enabled, set
GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile
argument to disable. ;;; compiling
/usr/local/share/mu/scripts//find-dups.scm ;;; WARNING:
compilation of /usr/local/share/mu/scripts//find-dups.scm
failed: ;;; ERROR: no code for module (mu) Backtrace: In
ice-9/boot-9.scm:
149: 18 [catch #t #<catch-closure d13560> ...] 157: 17
[#<procedure cb10f0 ()>]
In unknown file:
?: 16 [catch-closure]
In ice-9/boot-9.scm:
63: 15 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
407: 14 [eval # #]
In ice-9/boot-9.scm: 2111: 13 [save-module-excursion
#<procedure cb6080 at ice-9/boot-9.scm:3646:3 ()>] 3651: 12
[#<procedure cb6080 at ice-9/boot-9.scm:3646:3 ()>] 1380: 11
[%start-stack load-stack #<procedure f1a2e0 at
ice-9/boot-9.scm:3642:10 ()>] 1385: 10 [#<procedure 1070b40
()>] In unknown file:
?: 9 [primitive-load
"/usr/local/share/mu/scripts//find-dups.scm"]
In ice-9/eval.scm:
480: 8 [#<procedure be3c80 at ice-9/eval.scm:474:4 (exp)>
(use-modules # # #)]
In ice-9/psyntax.scm: 1101: 7 [expand-top-sequence
((use-modules (mu) (mu script) ...)) () ...]
986: 6 [scan ((use-modules (mu) (mu script) ...)) () ...]
270: 5 [scan ((# #) #(syntax-object *unspecified* # #)) ()
(()) ...]
In ice-9/boot-9.scm: 3244: 4 [process-use-modules (((mu)) ((mu
script)) ((mu stats)))]
545: 3 [map #<procedure cb3280 at ice-9/boot-9.scm:3244:25
(mif-args)> (# # #)]
3245: 2 [#<procedure cb3280 at ice-9/boot-9.scm:3244:25
(mif-args)> ((mu))] 2583: 1 [resolve-interface (mu) #:select
...] In unknown file:
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module"
(mu)) #f]

ERROR: In procedure scm-error: ERROR: no code for module (mu)

What am i missing? i'm running Debian Wheezy 7.8 x86_64.

Thanks!


Alexis.

Dirk-Jan C. Binnema

unread,
Apr 13, 2015, 8:35:56 AM4/13/15
to mu-di...@googlegroups.com
Hi Alexis,

Hmmm, seems like a load-path problem; does it work after:

export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.0"

Cheers,
Dirk.

On Thursday Apr 09 2015, Alexis wrote:

Gour

unread,
Apr 13, 2015, 12:51:04 PM4/13/15
to mu-di...@googlegroups.com

Dirk-Jan C. Binnema <dj...@djcbsoftware.nl> writes:

> Hi Alexis,
>
> Hmmm, seems like a load-path problem; does it work after:
>
> export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.0"

I solved it with:

(set! %load-path (cons "/usr/local/share/guile/site/2.0" %load-path))


Sincerely,
Gour

--
The senses are so strong and impetuous, O Arjuna,
that they forcibly carry away the mind even of a man
of discrimination who is endeavoring to control them.

Gour

unread,
Apr 13, 2015, 1:01:16 PM4/13/15
to mu-di...@googlegroups.com
On Mon, 13 Apr 2015 15:35:53 +0300
Dirk-Jan C. Binnema <dj...@djcbsoftware.nl> wrote:

> Hmmm, seems like a load-path problem; does it work after:
>
> export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.0"

I was too fast, but neither

(set! %load-path (cons "/usr/local/share/guile/site/2.0" %load-path))

nor setting GUILE_LOAD_PATH helps here.

The find-dups script is not found.


Sincerely,
Gour

--
From anger, complete delusion arises, and from delusion
bewilderment of memory. When memory is bewildered,
intelligence is lost, and when intelligence is lost
one falls down again into the material pool.

Alexis

unread,
Apr 14, 2015, 5:13:46 AM4/14/15
to mu-di...@googlegroups.com


Dirk-Jan C. Binnema <dj...@djcbsoftware.nl> writes:

> Hmmm, seems like a load-path problem; does it work after:
>
> export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.0"

It does indeed. :-) i'll add that to my .zshenv - thanks!


Alexis.

Jeff Templon

unread,
Apr 5, 2017, 4:14:16 AM4/5/17
to mu-discuss
Hi,

I just found this (I have the same problem).  mu as installed via Homebrew on Mac doesn't have guile support built in.  Is there an easy way to get this without doing the compile/install dance myself?

 JT
Reply all
Reply to author
Forward
0 new messages