<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.mail.popa3d.user">
    <title>gmane.mail.popa3d.user</title>
    <link>http://blog.gmane.org/gmane.mail.popa3d.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.mail.popa3d.user/442"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.mail.popa3d.user/438"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.mail.popa3d.user/436"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.mail.popa3d.user/442">
    <title>popa3d-vname, allowing hierarchies for "domain:directory" in vnamemap</title>
    <link>http://comments.gmane.org/gmane.mail.popa3d.user/442</link>
    <description>&lt;pre&gt;Hi all,

I am using hhg's patch at

   http://hhg.to/popa3d/popa3d-0.6.3-vname-2.diff

but it doesn't seem to support directory hierarchies for
directory values in vnamemap. e.g.

   "mydomain.com:mydomain"

works, but

   "mydomain.com:anotherdir/mydomain"

won't.

I wrote the attached patch to allow the above to happen,
but is this safe?

Note that the patch can be applied to unpatched 1.0.2
and result in compilable virtual.c, but only makes
sense when popa3d-0.6.3-vname-2.diff is also applied.

- Andy


============================
http://webmechs.com/webpress
The Webmechs Webpress Blog
--- virtual.c.orig2010-11-09 10:06:10.829767335 +0000
+++ virtual.c2010-11-09 10:06:15.847769298 +0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -127,6 +127,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; struct passwd *virtual_userpass(char *us
 char *address, *pathname;
 char *template, *passwd;
 int fail;
+    int vname_lookup_fail=1;
 int fd, size;
 
 *known = 0;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -137,7 +138,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; struct passwd *virtual_userpass(char *us
 virtual_spool = NULL;
 
 #if VIRTUAL_VNAME
-if (!(address = vname_lookup(user)))
+if (address = vname_lookup(user))
+      vname_lookup_fail=0;
+    else
 #endif
 if (!(address = lookup())) return NULL;
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -154,7 +157,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; struct passwd *virtual_userpass(char *us
 }
 
 /* This "can't happen", but is just too critical to not check explicitly */
-if (strchr(address, '/') || strchr(user, '/'))
+if ( vname_lookup_fail &amp;amp;&amp;amp; (strchr(address, '/') || strchr(user, '/')) )
 return NULL;
 
 pathname = concat(VIRTUAL_HOME_PATH, "/", address, NULL);
&lt;/pre&gt;</description>
    <dc:creator>Andy Sy</dc:creator>
    <dc:date>2010-11-09T10:13:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.mail.popa3d.user/438">
    <title>popa3d in Minix3</title>
    <link>http://comments.gmane.org/gmane.mail.popa3d.user/438</link>
    <description>&lt;pre&gt;Good day!
I have patch for run popa3d-1.0.2 on Minix3.
I test basic functionality of popa3d in Minix3 and want add this patch
in mainstream. How I can make this?
Thanks.
&lt;/pre&gt;</description>
    <dc:creator>Pavel V Samsonov</dc:creator>
    <dc:date>2010-08-19T11:34:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.mail.popa3d.user/436">
    <title>popa3d log facility</title>
    <link>http://comments.gmane.org/gmane.mail.popa3d.user/436</link>
    <description>&lt;pre&gt;Helo lists,

Is there any possiblity to change popa3d log from /var/log/messages to
/var/log/mail* ?  Which files (*.c, *.h) I should modify??


&lt;/pre&gt;</description>
    <dc:creator>Wijatmoko U. Prayitno</dc:creator>
    <dc:date>2009-12-12T16:21:22</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.mail.popa3d.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.mail.popa3d.user</link>
  </textinput>
</rdf:RDF>
