Re: Help with qmail's procedures when reading mails using a pop client. I need to tweak the pop3d i suppose

[email protected] Tue, 20 Sep 2005 14:18:01 +0000
Newsgroups gmane.mail.qmail.dist
Message-ID <[email protected]>
On Tue, Sep 20, 2005 at 07:08:26PM +0530, Madhur Kumar Tanwani wrote:

> 1.> the qmail-pop3d reads mails from the "new" directory and sends it to
> the user. However, it also in parallel moves the mail to "cur". I wanted
> to tweak this behavior to _stop_ the moving of the mails to cur and let
> them be in new itself.

have a look into qmail-pop3d.c, find some code looking similar to this:

   if (str_start(m[i].fn,"new/")) {
        if (!stralloc_copys(&line,"cur/")) die_nomem();
        if (!stralloc_cats(&line,m[i].fn + 4)) die_nomem();
        if (!stralloc_cats(&line,":2,")) die_nomem();
        if (!stralloc_0(&line)) die_nomem();
        rename(m[i].fn,line.s); /* if it fails, bummer */
      }
and remove the whole block.

Since you are asking on the qmail-dist mailinglist i feel that i have to
inform you that you must not distribute the compiled binaries after you
did this, since this change unquestionable alters the behaviour of qmail.

> 2.> Dont know if this question actually refers to this group or not. In
> case it does not, i apologies and request to ignore.

well, even #1 doesn't belong here...

> After I installed vpopmail, I've not been able to pop mails for system

after you installed vpopmail *please* go to the vpopmail mailing lists.

Regards, Uwe