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
# Remote IMAP server
IMAPAccount myaccount-imap
Host mail.runbox.com          # For testing using Runbox's server name
Timeout 0                     # Number of seconds to timeout (0 is never 
timeout)
User user%mydomain
Pass "XXXXXXX"
TLSType IMAPS
AuthMechs Login
SystemCertificates yes        # For testing use the systems trust chain

# Remote store
IMAPStore myaccount-remote
Account myaccount-imap

# Local mail store
MaildirStore myaccount-local
Path ~/.mail/myaccount-test/
Inbox ~/.mail/myaccount-test/INBOX
Subfolders Verbatim

# Myaccount INBOX
# Mail is moved from here to archives (Sync all; Expunge Both)
# No real reason for folders to be created under here
Channel myaccount-inbox          #
Far :myaccount-remote:           #
Near :myaccount-local:           #
Sync All                         # Set Pull tests; All production
Expunge Both                     # Delete email: Both = bidirectional sync
Create Near                      # Creation of folders on server are propogated
Remove Near                      # Creation of folders on server are propogated
Syncstate *
CopyArrivalDate yes
MaxMessages 100
ExpireUnread yes                 # Test: remove old messages to download new 
ones


Group myaccount
Channel myaccount-inbox



Reply via email to