Re: IMAP check problems - again



On 2001.08.27 13:20 Carlos Morgado wrote:
> 
> On 2001.08.27 11:13:15 +0100 Toralf Lund wrote:
> > It looks like *nothing* is checked now, when "Check IMAP mailboxes" and
> > "Check INBOX only" are enabled. The problem appears to be that mailbox
> name
> > (an arbitrary string entered by the user) rather than server path is
> passed
> > to imap_check_test(). Possible fix:
> > 
> 
> i noticed one imap server i use reports all boxes as /full/path/BOXNAME
> instead of BOXNAME.
> change
> 
> static gboolean
> imap_check_test(const gchar * path)
> {
> fprintf(stderr, "%s\n\n",path); <--
>     /* path has been parsed, so it's just the folder path */
>     if (balsa_app.check_imap && balsa_app.check_imap_inbox)
> 	return (strstr(path, "INBOX") != NULL);
>     else
> 	return balsa_app.check_imap;
> }
> 
> and check if yours does too.
I tried this yesterday. For INBOX it would simply list "INBOX" - but only
after I introduced my fix. Before that, it would print whatever I happened
to type in for "Mailbox Name" in the properties dialogue. For other
mailboxes, it would list <prefix>[/<folder>[/<subfolder>..]]/mailbox.

Note, though, that I hadd to add my inbox separately - it is not included
by New->Remote IMAP folder, at least not if I want to use a folder prefix
(and I do as the IMAP server will otherwise list everything on my home
directory as folders/mailboxes)


> also, is there a way to 'fix' this behaviour of imap server ?
> 
> -- 
> Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey:
> 0x1FC57F0A
> http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5
> 7F0A
> Software is like sex; it's better when it's free. - Linus Torvalds
> 
> _______________________________________________
> balsa-list mailing list
> balsa-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/balsa-list
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]