current in AbstractMailReceiver, we have 3 constructors.
        private final URLName url;
	public AbstractMailReceiver() {
		this.url = null;
	}
	public AbstractMailReceiver(URLName urlName) {
		Assert.notNull(urlName, "urlName must not be null");
		this.url = urlName;
	}
	public AbstractMailReceiver(String url) {
		if (url != null) {
			this.url = new URLName(url);
		}
		else {
			this.url = null;
		}
	} 
it says url could be null in some cases.
however, inside the AbstractMailReceiver.receive(), we will call below:
	private Folder obtainFolderInstance() throws MessagingException {
		return this.store.getFolder(this.url);
	} 
here, if this.url is null, getFolder will throw an NPE.
So, I think it's safe to remove this constructors.