[kronolith] Calendar event alarm reminders via e-mail

Michael J Rubinsky mrubinsk at horde.org
Mon Jan 27 16:16:34 UTC 2020


Quoting Aria Bamdad <aria at bsc.gwu.edu>:

>> Quoting Aria Bamdad <aria at bsc.gwu.edu>:
>>
>> > Hi,
>> >
>> > Under user configuration Preferences -> Calendar -> Notifications you
>> can
>> > configure 'Email' notification under "Choose how you want to receive
>> > reminders for events with alarms:".  This works well and an e-mail is
>> sent
>> > to the default identity (from the user to the user) regarding the
>> event at
>> > the appropriate time.  However, at the bottom of the same
>> configuration
>> > screen, there is a field "Email address (optional)" that allows for an
>> > e-mail address to be entered.  If provided, then the e-mail sent will
>> be
>> > from this e-mail address and to this e-mail address.
>> >
>> > Is this working as designed?  The logical (in my opinion) is to always
>> send
>> > the event notification e-mail from the default user identity and to
>> the
>> > e-mail address provided in this field, if one is provided.
>>
>>
>> While I agree with your expectation, the Horde_Alarm system, which is
>> responsible for sending those emails, currently only accepts a single
>> email address, which is used as both the From and the To. The optional
>> email address in Kronolith is used as that email address if it is
>> provided.
>>
>>
>> Feel free to create an enhancement request for this, or maybe better
>> yet, a more complete integration of the identity system into Kronolith
>> so you can select an explicit identity for these notifications.
>>
>>
>> > What happens now is that a message is generated addressed from the
>> user that
>> > is supposed to be the recipient.  Various mail services (Gmail, etc.)
>> > consider this a spam or suspicious and mark the message as such.
>> >
>> > Can this behavior be changed?
>> >
>
> Thank you Michael, I will open an enhancement request.  In the  
> meantime, since if no e-mail address is provided to Kronolith via  
> the configuration screen, then horde_Alarm will assume the default  
> identity is the 'from' identity, then it is conceivable that I can  
> easily create a local modification to horde_alarm to always assume  
> the from address is the default identity and the to address is what  
> is provide via the kronolith configuration screen.

> Do you think this would have negative impact on other  
> modules/functions that rely on horde_alarm?

Well, you can't just hard code the kronolith configuration accessor  
into Horde_Alarm, since this would cause it to always use this address  
regardless of what Alarm is being triggered. Not to mention that  
Kronolith won't always be in scope when that code is reached, causing  
it to fatally fail.  This is why Horde_Alarm either has to be extended  
to accept a separate from/to address, or, as suggested, more tightly  
integrate the Identity system with Kronolith.

> Can you point me to the correct code segment that this is done in?

https://github.com/horde/Alarm/blob/master/lib/Horde/Alarm/Handler/Mail.php

>
> Thanks,
> Aria
>
> --
> kronolith mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/kronolith/attachments/20200127/8b7f4898/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/kronolith/attachments/20200127/8b7f4898/attachment.sig>


More information about the kronolith mailing list