<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/javaemailserver/patches/" rel="alternate"/><link href="https://sourceforge.net/p/javaemailserver/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/javaemailserver/patches/</id><updated>2009-03-17T16:47:19Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Patch for JES 1.6.1 - wildcard in domain name</title><link href="https://sourceforge.net/p/javaemailserver/patches/4/" rel="alternate"/><published>2009-03-17T16:47:19Z</published><updated>2009-03-17T16:47:19Z</updated><author><name>Jakub Holý</name><uri>https://sourceforge.net/u/malyvelky/</uri></author><id>https://sourceforge.netf5403afebbc94b206557a1e32b54281c5db98232</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've found the requirement to specify a full domain name in&lt;br /&gt;
the local domains list too limiting as the program I was testing can&lt;br /&gt;
generate mails for users in any of many subdomains of a domain. Therefore&lt;br /&gt;
I've modified the code slightly to accept also wildcards, like&lt;br /&gt;
*.mydomain.com which will accept both me@test.mydomain.com and&lt;br /&gt;
you@there.mydomain.com as local mails and deliver them to the default&lt;br /&gt;
user. &lt;/p&gt;
&lt;p&gt;--- Modifications in mail.conf:&lt;br /&gt;
# You can specify either full domain name or use the wildcard *, which&lt;br /&gt;
# will match any nonempty string.&lt;/p&gt;
&lt;p&gt;# ex: domains=mydomain1.com,mydomain2.com,*.mydomain2.com&lt;/p&gt;
&lt;p&gt;domains=mydomain.com&lt;br /&gt;
--- Modifications in ConfigurationManager.java:&lt;br /&gt;
public boolean isLocalDomain( String domain )&lt;br /&gt;
...&lt;br /&gt;
if( localDomains[index].equals( domain ) )&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;return true;&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
// JH: Add wildcard support&lt;br /&gt;
{&lt;br /&gt;
final String localDomainPattern =&lt;br /&gt;
localDomains[index].replaceAll("\\.","\\\\.").replaceAll("\\*","\\.\\+");&lt;br /&gt;
return domain.matches( localDomainPattern );&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Various issues addressed</title><link href="https://sourceforge.net/p/javaemailserver/patches/3/" rel="alternate"/><published>2008-02-07T11:35:37Z</published><updated>2008-02-07T11:35:37Z</updated><author><name>mfg8876</name><uri>https://sourceforge.net/u/mfg8876/</uri></author><id>https://sourceforge.net1458a74c4e776fa03ad9defb269a89830a96ad2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey there,&lt;br /&gt;
I like your server, really nice work. There were a few annoying quirks here and there so I took it up :)&lt;/p&gt;
&lt;p&gt;I worked on the 1.6.1 version.&lt;/p&gt;
&lt;p&gt;There are no new classes or methods.&lt;/p&gt;
&lt;p&gt;I added a few synchronizations, no big deal.&lt;/p&gt;
&lt;p&gt;And now the good stuff.&lt;/p&gt;
&lt;p&gt;I have dropped the throw new RuntimeException() approach to disconnections in favor of simple null/boolean checks. There should be no slow downs.&lt;/p&gt;
&lt;p&gt;Values (the ones that are meant to be changed while the server is running) can now be altered, while the server is active, in mail.conf and user.conf without issues. There are no file locks anymore.&lt;/p&gt;
&lt;p&gt;Affected files:&lt;/p&gt;
&lt;p&gt;ConfigurationManager.java&lt;br /&gt;
Pop3Processor.java&lt;br /&gt;
SMTPProcessor.java&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Andreas&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch for retrieval of partially spooled message</title><link href="https://sourceforge.net/p/javaemailserver/patches/2/" rel="alternate"/><published>2005-10-10T06:10:30Z</published><updated>2005-10-10T06:10:30Z</updated><author><name>Paul O'Keeffe</name><uri>https://sourceforge.net/u/javakef/</uri></author><id>https://sourceforge.net5de4af728f991d7dd9f23f3509bacf1b6f65a963</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A mail is in the process of being spooled into the user &lt;br /&gt;
directory by the SMTPSender. At the same time, a &lt;br /&gt;
POP3 client queries the server to retrieve mail. It sees &lt;br /&gt;
the mail message currently being spooled and attempts &lt;br /&gt;
to retrieve details of that message (for example, its &lt;br /&gt;
content or content type). As the message has only &lt;br /&gt;
partially been spooled, the POP3 client sometimes sees &lt;br /&gt;
spurious results.&lt;/p&gt;
&lt;p&gt;This patch addresses the problem by spooling to a &lt;br /&gt;
temporary file and then renaming it to the correct file &lt;br /&gt;
name once the whole file has been spooled. The POP3 &lt;br /&gt;
client code picks up only files with correct file names &lt;br /&gt;
and does not see temporary files. The POP3 client will &lt;br /&gt;
either see no message or the whole message.&lt;/p&gt;
&lt;p&gt;This is a patch for version 1.4 of JES.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch for handling null reverse-path messages</title><link href="https://sourceforge.net/p/javaemailserver/patches/1/" rel="alternate"/><published>2004-01-25T11:04:32Z</published><updated>2004-01-25T11:04:32Z</updated><author><name>Bradley Smith</name><uri>https://sourceforge.net/u/yeldar/</uri></author><id>https://sourceforge.net28ae7a9f9dcc12bb901dcede8499fdb6a0b7ae7e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;An "undeliverable mail" notification message from &lt;br /&gt;
another mail server will often use a null reverse-path. &lt;br /&gt;
This means that no from address is provided with the &lt;br /&gt;
message (namely MAIL FROM:&amp;lt;&amp;gt;). When the &lt;br /&gt;
SMTPMessage was saved, the from-address line is &lt;br /&gt;
blank, but when the SMTPMessage was loaded, a blank &lt;br /&gt;
from-address line would cause an exception when &lt;br /&gt;
creating the EmailAddress object. Thus the message &lt;br /&gt;
would never be delivered, and would forever remain in &lt;br /&gt;
the smtp directory causing more attempts to be &lt;br /&gt;
delivered.&lt;/p&gt;
&lt;p&gt;This patch checks for blank from-address lines. If the &lt;br /&gt;
from-address line is blank, an empty EmailAddress object &lt;br /&gt;
is created without causing an exception, thereby &lt;br /&gt;
allowing the message to be delivered.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>