On Sat, Oct 15, 2022 at 08:10:03PM +0200, Angel M Alganza wrote:
> Hi Chris,
> 
> On Sat, Oct 15, 2022 at 06:29:37PM +0100, Chris Green wrote:
> 
> > I'm now considering using mutt to move some IMAP folders from one
> > server to another, both IMAP servers will be remote.  Is this a
> > sensible idea or should I look for a specialised tool?
> 
> I have ocasionally used Mutt with more than one IMAP server at the same
> time, so I'm quite confident that could be done with just Mutt.
> 
> I would use Imapfilter, though, which I believe would be a more
> appropriate tool for that.  It would take very minimal configuration,
> just the servers configuration (account1 and account2) and a couple of
> lines for the origin and destination folders, something like:
> 
> messages = account1["INBOX"]:select_all()
> messages:copy_messages(account2["INBOX"])
> 
> to copy everything to the new server, or to move it, replacing the
> second line with something like this one:
> 
> messages:move_messages(account2["INBOX"])
> 
Hmmm.

I've installed imapfilter on my xubuntu linux system and I've created
an imapfilter config file:-

    cwebin  {
        server = 'mail.gridhost.co.uk',
        username = 'c...@isbd.co.uk',
        password = 'xxxxxxxx',
        ssl = 'auto'
    }

    cwebout  {
        server = 'x.y.zzz',
        username = 'c...@isbd.co.uk',
        password = 'xxxxxxxx',
        ssl = 'auto'
    }

... and when I run imapfilter it just says:-

    chris$ imapfilter
    imapfilter: /home/chris/.imapfilter/config.lua:1: attempt to call global 
'cwebin' (a nil value)
    stack traceback:
            [C]: in function 'cwebin'
            /home/chris/.imapfilter/config.lua:1: in main chunk
    chris$ 

Not being a lua guru I'm a bit stuck!


-- 
Chris Green

Reply via email to