[Spambayes] Re: YAIP (Yet Another IMAP Problem)

David Abrahams dave at boost-consulting.com
Wed Apr 23 20:12:29 EDT 2003


Oliver Maunder <lists at olivermaunder.co.uk> writes:

> Hi again
>
> Well, training seems to be working, so now I've moved on to
> classifying, with the following results:
>
> Traceback (most recent call last):
>   File "C:\Development\spambayes\imapfilter.py", line 568, in ?
>     run()
>   File "C:\Development\spambayes\imapfilter.py", line 558, in run
>     imap_filter.Filter()
>   File "C:\Development\spambayes\imapfilter.py", line 437, in Filter
>     self.unsure_folder)
>   File "C:\Development\spambayes\imapfilter.py", line 383, in Filter
>     msg.Save()
>   File "C:\Development\spambayes\imapfilter.py", line 230, in Save
>     response = imap.uid("SEARCH", "(HEADER)",
>     "X-Spambayes-IMAP-OldID", old_id)
>   File "C:\Program Files\Python22\lib\imaplib.py", line 622, in uid
>     typ, dat = apply(self._simple_command, (name, command) + args)
>   File "C:\Program Files\Python22\lib\imaplib.py", line 925, in
>   _simple_command
>     return self._command_complete(name, apply(self._command, (name,) +
>     args))
>   File "C:\Program Files\Python22\lib\imaplib.py", line 762, in
>   _command_complete
>     raise self.error('%s command error: %s %s' % (name, typ, data))
> imaplib.error: UID command error: BAD ['Missing required argument to
> Search head
> er']

I'm getting the same error:

%python imapfilter.py -c -v -d ~/bayes.db
Loading database /usr/home/dave/bayes.db... Done.
Classifying
Traceback (most recent call last):
  File "imapfilter.py", line 565, in ?
    run()
  File "imapfilter.py", line 555, in run
    imap_filter.Filter()
  File "imapfilter.py", line 434, in Filter
    self.unsure_folder)
  File "imapfilter.py", line 380, in Filter
    msg.Save()
  File "imapfilter.py", line 231, in Save
    old_id)
  File "/usr/local/lib/python2.2/imaplib.py", line 622, in uid
    typ, dat = apply(self._simple_command, (name, command) + args)
  File "/usr/local/lib/python2.2/imaplib.py", line 925, in _simple_command
    return self._command_complete(name, apply(self._command, (name,) + args))
  File "/usr/local/lib/python2.2/imaplib.py", line 762, in _command_complete
    raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: UID command error: BAD ['syntax error']


-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Spambayes mailing list