[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sieve, problem backing up mail
From: |
Steve George |
Subject: |
Re: Sieve, problem backing up mail |
Date: |
Thu, 5 Jun 2025 23:17:09 +0100 |
On Wed, Jun 04, 2025 at 05:47:18PM +0200, Sergey Poznyakoff wrote:
> Hi Steve,
>
> What version of mailutils do you use?
>
> > I'm using `mbsync` to synchronise email
>
> Can you provide a minimalistic recipe (e.g. mbsync command line etc.),
> so I can try to reproduce the issue?
>
> Regards,
> Sergey
Hi Sergey,
Sieve says it's version 3.19 and that's what the guix package says it is [0].
Attached is a minimal `mbsyncrc-myaccount`, which works. I do:
mkdir ~/.mail/myaccount-test
mbsync --config mbsyncrc-myaccount myaccount --list
$ mkbsync --config mbsyncrc-myaccount --list myaccount
INBOX <==> INBOX
A normal session would be:
# download new email:
$ mbsync --config mbsyncrc-myaccount myaccount
# then run sieve:
$ sieve --mbox-url=/home/steve/.mail/myaccount-test/INBOX --verbose
~/.config/neomutt/sieve-test.sieve
# recheck email:
$ mbsync --config mbsyncrc-myaccount myaccount
The sieve recipe was:
require ["fileinto", "variables"]
set "folder" "maildir:///home/user/.mail/account";
if exists "to"
{
fileinto "{folder}/backup-allmail";
keep;
}
Thanks!
Steve / Futurile
[0] https://hpc.guix.info/package/mailutils
mbsyncrc-myaccount
Description: Text document