In the documentation it states that the email sent to the mailhandler account should be a registered user.

I use mailalais to create an alias for a registered user. for example, a-user@mysite.com is aliased to a-user@gmail.com

If I send an email from a-user@gmail.com, will mailhandler see it as an email from a-user@mysite.com?

Thanks!

Comments

socialnicheguru’s picture

adding tags

cor3huis’s picture

Priority: Normal » Minor
Status: Active » Postponed

Yes.

BTW Have you tried it, and did it work as expected? Reply with your result very appreciated.

danepowell’s picture

Status: Postponed » Closed (won't fix)

This issue is no longer relevant, as I believe mailalias is now defunct.

rsbecker’s picture

Version: 6.x-1.x-dev » 6.x-2.0-rc1
Priority: Minor » Major

This issue should not be closed. Despite the fact that mailalias has been depricated many of us use it because, as far as I know, mailhandler has not been changed to use the multiple emails module.

We need the ability for a user to be able to send from more than one mail address and have mailhandler authenticate the user.

rsbecker’s picture

I have confirmed that mailhander 6.x.2.0-rc1 does not work with mailalias. Prior versions did work.

The latest version of mailhandler fixed several problems I was having, so I don't want to go back. But I need to have the ability to let users post from more than one address w/o having to set up separate user accounts for each address.

I would love to switch to multipe_email, but mailhandler doesn't yet work with it.

danepowell’s picture

Title: Does mailhandler work with mailalias » Support Multiple Email module
Category: support » feature
Status: Closed (won't fix) » Active

This is easy to accomplish with an authentication plugin. Simply copy MailhandlerAuthenticateDefault and modify it to load a user using Multiple Email's API.

If you do this and upload a patch I will commit it.

danepowell’s picture

Title: Support Multiple Email module » Support for Multiple Email module
danepowell’s picture

Status: Active » Postponed (maintainer needs more info)

I've implemented an initial version of this:
http://drupalcode.org/project/mailhandler.git/commit/24f19e9

Please try it and let me know if it works. Note that I haven't tested it at all- I am doing this strictly out of the kindness of my heart, so I don't have time to do extensive testing- I'm relying on you for that :)

danepowell’s picture

(you can either download that tarball or just wait for tonight's 6.x-2.x-dev release to roll)

rsbecker’s picture

I downloaded the new version of mailhandler 6.x.2.dev this morning. The multiple_emails plugin does not work. I think I know the reason, but am not sure how to fix it.

    $address = multiple_email_find_address($fromaddress);
    $fromaddress = $address->primary_address;

The code appears to check only the primary address. I think $address needs to be an array including all addresses associated with the user. Then the plugin needs to step through the elements of the array and authenticate if any of the addresses matches $fromaddress.

danepowell’s picture

Version: 6.x-2.0-rc1 » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Patch (to be ported)

Okay, I figured it out. Sorry, the API documentation for multiple_email is just really lacking.
http://drupalcode.org/project/mailhandler.git/commit/1b1d7b8

Do you know if Multiple Email 7.x is stable enough that we should go ahead and provide support?

rsbecker’s picture

The fix worked. It took me a bit to figure that out because I had to remember to go back and change the authentication setting in the feed importer.

I do not have multiple email running on a D7 site, so maybe someone else can tell you whether it is stable. But I assume there never was a version of mailalias for D7, so anyone using D7 never had this functionality.

BTW, I'm going to put my documentation up on my site over the weekend. I'll send a link so you can read it and make sure I haven't made any mistakes.

danepowell’s picture

Priority: Major » Normal
kentr’s picture

Component: Code » Mailhandler

I've made a fix for 6.x-1.x if anyone's interested.

danepowell’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -mailhandler, -mailalias, -mail2og, -mailcomment

Automatically closed -- issue fixed for 2 weeks with no activity.

nickonom’s picture

Issue summary: View changes

Has this ever went into 7.x branch?