> -----Messaggio originale-----
> Da: Sam Varshavchik [mailto:[EMAIL PROTECTED]]
> Inviato: sabato 5 maggio 2001 2.38
> Cc: [EMAIL PROTECTED]
> Oggetto: Re: R: Coda not working with sqwebmail
>
>
> On Fri, 4 May 2001, Andrea Cerrito wrote:
>
> > It's not correct.
> >
> > The function rename() can be used instead of link().
>
> No it can't.  What rename() does is completely different than what link()
> does.
>
> > Even qmail uses link(), but now it is working without problems using
> > rename().
>
> That's because qmail doesn't really need link()-specific things.
>
> > This is the work done by kbo to patch his vpopmail to work with coda
> >
> > int safe_rename(char *old, char *new)
> > {
> > #ifndef ENABLE_CODA
> >     return(rename(old, new));
> > #else
> >     link(old, new);
> >     unlink(old);
> > #endif
> >
> > Please let me know what do you think about. :)
>
> The above indicates that rename() is equivalent to link() followed by
> unlink().  Since sqwebmail does not do unlink() immediately after a
> link(), the above approach is inapplicable.

Ok.
I think you are right :).

Anyway, the strace I send is the same for the problem I got with vpopmail /
qmail: I mean, moving a mail from a dir to another.

[pid  7633] link(".Sent/cur/988901400.6099.homer-a.mgt.int,S=1332:2,S",
".Trash/cur/988901400.6099.homer-a.mgt.int,S=1332:2,S") = -1 EXDEV (Invalid
cross-device link)

I forgot to say that only Qmail / Maildirs are on coda, all other dirs are
on an ext3 fs, and other functions are working great (I can receive, attach,
insert a user in the addressbook, send mail, changing pref. and so on).
ie:

/coda/qmail                                     CodaFS
/usr/local/share/sqwebmail              EXT3
/usr/local/apache/htdocs/cgi-bin        EXT3
/usr/local/apache/htdocs/sqwebmail      EXT3
/var                                            EXT3
and so on...

So, is there a solution to make sqwebmail working on coda? Trying to link
and if it fails to do another action (copy? symlink? rename?). Just link is
not supported on coda.
I really love your solution, and it will be great to use it for my project.

Please let me know :) and thanks again for your time.
---
Cordiali saluti / Best regards
Andrea Cerrito
^^^^^^^^^^^^^^
Net.Admin @ Centro MultiMediale di Terni SpA
P.zzale Bosco 3A
05100 Terni IT
Tel. 0744 / 5441330
Fax. 0744 / 5441372

Reply via email to