Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Code.gs #68

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var removeEventsFromCalendar = true; // If you turn this to "true", any event
var addAlerts = true; // Whether to add the ics/ical alerts as notifications on the Google Calendar events
var addOrganizerToTitle = false; // Whether to prefix the event name with the event organiser for further clarity
var descriptionAsTitles = false; // Whether to use the ics/ical descriptions as titles (true) or to use the normal titles as titles (false)
var removeFWFromTitles = true; // Whether to remove the 'FW:' from the start of event titles if you weren't the original recipient

var emailWhenAdded = false; // Will email you when an event is added to your calendar
var email = ""; // OPTIONAL: If "emailWhenAdded" is set to true, you will need to provide your email
Expand Down Expand Up @@ -258,7 +259,11 @@ function ConvertToCustomEvent(vevent){
if (descriptionAsTitles)
event.title = vevent.getFirstPropertyValue('description') || '';
else{
event.title = vevent.getFirstPropertyValue('summary') || '';
if(removeFWFromTitles)
event.title = vevent.getFirstPropertyValue('summary').replace('FW: ', '') || '';
else{
event.title = vevent.getFirstPropertyValue('summary') || '';
}
event.description = vevent.getFirstPropertyValue('description') || '';
}

Expand Down