Skip to content

Appointment as variable in notification #286

@mb720

Description

@mb720

Hi!

I was wondering if it's possible to access the name of an appointment in the notification for it.

My goal is to notify myself of flagged appointments a couple of hours in advance per email. If the machine is not running at that exact moment, it should try again on the next occasion the machine is running.

I've got this in .config/calcurse/conf:

notification.command=echo "$(calcurse -n)" | mutt -s "Don't forget..." matthias@bullbytes.com

This works nicely if there's no unflagged appointment before the flagged one to which the notification belongs.

I think I could use a filter to with calcurse -n to get the next flagged appointment but this seems brittle, since if I change the notification.notifyall setting to get notified about all appointments, not only flagged once, the notification will refer to the wrong appointment.

I was wondering if there's a special variable like %m I could put into the notification.command that will get expanded to the appointment's title:

notification.command=echo "%m" | mutt -s "Don't forget..." matthias@bullbytes.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions