Hi Robert,

Excerpts from Robert Winkler's message of 2020-07-08 10:06:55 -0700:
> Thanks, Good hint, Iain!

Thank you!

> I want to move the mails in a second step (yet to be resolved).
> 
> Any hints on possible external programs/ scripts for moving mails with a 
> particular label to a special /Maildir folder (e.g. 
> ~/Maildir/SpamAssassin/Spam)?

Question: do the mails need to be moved, or can they be copied?

(Side note: Sup should de-duplicate copies of mails that appear in more
than one source, i.e., should recognise that it is a duplicate of the
same message, and not show it twice. Or for simplicity, don't tell Sup
to index the SpamAssassin Maildirs!)

If making a copy is sufficient, then you can write the email to a new
file in the appropriate Maildir (since a Maildir is just a collection of
files, with each file being one email). All you need is a random
filename. For example, you could pipe to cat to create with a random
filename (a UUID), using something like:

    cat >~/Maildir/SpamAssassin/Spam/$(cat /proc/sys/kernel/random/uuid)

Kind regards,
Iain

-- 
You received this message because you are subscribed to the Google Groups "The 
Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/supmua/1594233819-sup-5407%40ceres.

Reply via email to