wmbiff: parse IMAP configuration on FreeBSD
commit89a517a6f888d535b7d962b1abf7dd5041538895
authorDoug Torrance <dtorrance@piedmont.edu>
Wed, 3 Jun 2020 01:27:31 +0000 (2 21:27 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 3 Jun 2020 05:39:19 +0000 (3 06:39 +0100)
tree83b12fa3ebc047b1e1680ea0ca3e78bd2b1d185c
parentc9430fa9edb5d52368fcd337903e5173c8489c99
wmbiff: parse IMAP configuration on FreeBSD

From https://github.com/window-maker/dockapps/issues/29, raised
by mpastor:

Hi,
wmbiff compiled from source is not working on FreeBSD when using IMAP4, POP3 is working:

$ wmbiff
error in compiling regular expression: invalid repetition count(s)
error in compiling regular expression: invalid repetition count(s)
wmbiff/ imap4: Couldn't parse line imaps:mymail@domain.tld:MyPaSsWd@imap.domain.tld plaintext (0)
  If this used to work, run wmbiff with the -relax option, and
  send mail to wmaker-dev@googlegroups.com with the hostname
  of your mail server.
wmbiff: creator for mailbox 0 returned failure
$ wmbiff -relax
error in compiling regular expression: invalid repetition count(s)
error in compiling regular expression: invalid repetition count(s)
wmbiff/ imap4: Couldn't parse line imaps:mymail@domain.tld:MyPaSsWd@imap.domain.tld plaintext (0)
  If this used to work, run wmbiff with the -relax option, and
  send mail to wmaker-dev@googlegroups.com with the hostname
  of your mail server.
wmbiff: creator for mailbox 0 returned failure
$ wmbiff -debug
wmbiff: config_file = /home/me/.wmbiffrc.
wmbiff: @interval.-1=300@
wmbiff: @label..0=mail@
wmbiff: @path..0=imaps:mymail@domain.tld:MyPaSsWd@imap.domain.tld plaintext@
wmbiff: @action..0=claws-mail@
error in compiling regular expression: invalid repetition count(s)
error in compiling regular expression: invalid repetition count(s)
wmbiff/ imap4: Couldn't parse line imaps:mymail@domain.tld:MyPaSsWd@imap.domain.tld plaintext (0)
  If this used to work, run wmbiff with the -relax option, and
  send mail to wmaker-dev@googlegroups.com with the hostname
  of your mail server.
wmbiff: creator for mailbox 0 returned failure
wmbiff: looking for /usr/local/share/wmbiff/skins/wmbiff-master-led.xpm
wmbiff: found /usr/local/share/wmbiff/skins/wmbiff-master-led.xpm
wmbiff: running 1 mailboxes w 64 h 20
So I have changed Imap4Client.c according to Pop3Client.c and now it's ok:
wmbiff/wmbiff/Imap4Client.c