When one logs in for the first time, no sent mail is archived.
When one goes
into Settings at sets the sent mail archive preference,
setSentMailFolder(String name) is called, but
isAutoArchiveSet is still
false, although the value of true has been persisted to the
database. So,
m_SentMailFolder is not set.
One can see with debug statements that when the Settings
for isAutoArchiveSent
is false, and one sets it to true in the form, and clicks
Update, then
setSentMailFolder(String name) is called, but
m_Session.getPreferences().isAutoArchiveSent() returns
false at that point.
I think it should return true so that m_SentMailFolder gets
set. If one
clicks Update again (without changing anything), then
m_Session.getPreferences().isAutoArchiveSent() returns
true, and
m_SentMailFolder is set.
I see that JwmaController.doUpdatePreferences is calling
setSentMailFolder
*before* setAutoArchiveSent, so isAutoArchiveSent is false
that first time
through setSentMailFolder.
Logged In: YES
user_id=36782
Leonard,
Thanks. I have patched the JwmaController and commited the fix to the repository.
To achieve archiving on the first login, the template has to be configured accordingly (archive path set, as well as auto-archive true). Should work out.
Regards,
Dieter