Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
Work with Multiple IMAP Servers

I'm wondering in a multiple IMAP server senario, how can I define mail from insted of default settings. All IMAP servers are picking up default email address. Asking users to setting up each profile is not practical.

Regards,

Sunimal Jayasuriya

Reply /Quote
avatar
Re: Work with Multiple IMAP Servers

The alternate IMAP server configuration syntax (adding the "alt_1" prefix) should work for any hastymail2.conf setting. So you should be able to define multiple default email address formats like so:

default_email_address = '%u@domain1.com'
alt_1_default_email_address = '%u@domain2.com'
...

The problem then becomes the fact that only one default email address can be set per user profile and there is no correlation between a profile and a particular IMAP server login, so if a user logs into one IMAP server then saves their settings then logs into another the default email is already set. I will look into assigning default profiles per IMAP server login,.

Thanks for the feedback,
Jason

Reply /Quote
avatar
Re: Work with Multiple IMAP Servers

Hi Jason;

 

Thanks for your update, Yes you are correct. I have tried your option too. It would be great help if you can help on this matter soon.

Regards,

Sunimal J.

 

Reply /Quote
avatar
Re: Work with Multiple IMAP Servers

This is addressed in SVN as of rev 1255. You will need to add the alt_imap_profiles setting to your config:

alt_imap_profiles = true

You also need entries for each default address, eg:

alt_1_default_email_address = '%u@domain.com'

Thanks for the feedback,
Jason

Reply /Quote
Get Hastymail at SourceForge.net. Fast, secure and Free Open Source software downloads