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

feat: Store each INDIVIDUAL email as "PDF" instead of an entire thread #73

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

piraveen
Copy link
Contributor

@piraveen piraveen commented Jan 6, 2023

No description provided.

Config.gs Outdated
// Store threads marked with label "PDF" in the folder "PDF Emails" als PDF document.
// Store each INDIVIDUAL email as "PDF" instead of an entire thread, in the folder "PDF Emails"
"filter": "from:no_reply@email-invoice.example.com",
"saveMessageAsPDF": true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piraveen for consistency I'd name it saveMessagePDF to match saveThreadPDF.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahochsteger Thx for the feedback, changes updated in commit: 4db6634

Config.gs Outdated
// Store each INDIVIDUAL email as "PDF" instead of an entire thread, in the folder "PDF Emails"
"filter": "from:no_reply@email-invoice.example.com",
"saveMessageAsPDF": true,
"skipHeader": true, // Skip Email Header
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piraveen since this is meant for PDF export only, I'd name it skipPDFHeader.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahochsteger Thx for the feedback, changes updated in commit: 4db6634

@piraveen
Copy link
Contributor Author

@ahochsteger also added the missing function processMessageToHtml in commit: 4db6634

@piraveen piraveen requested a review from ahochsteger January 26, 2023 07:20
Copy link
Owner

@ahochsteger ahochsteger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piraveen looks good to me, thanks for your contribution!

@ahochsteger ahochsteger merged commit 88f3c34 into ahochsteger:master Jan 26, 2023
github-actions bot pushed a commit that referenced this pull request Aug 22, 2023
# [2.0.0](1.1.0...2.0.0) (2023-08-22)

### Bug Fixes

* add mailmap to fix wrong historic name/email ([cb43d48](cb43d48))
* add missing dryRun handling ([60f1e19](60f1e19))
* add missing processor base class ([3870c14](3870c14))
* ci workflow + release config ([49ae903](49ae903))
* cleanup files after clasp run ([d70cb44](d70cb44))
* code smells ([b76bcd9](b76bcd9))
* commit missing changes from last refactoring ([f7f8f3c](f7f8f3c))
* corrupted attachments (string -> blob) ([d698185](d698185))
* decorator implementation ([7afc98f](7afc98f))
* docs build ([8eda0e0](8eda0e0))
* eliminate defaults from converted config ([1fd9d7f](1fd9d7f))
* ensure uniqueness of example function names ([38ddbcd](38ddbcd))
* env context structure ([b94b53a](b94b53a))
* failing multiple substitutions of same placeholder ([d5ca9ef](d5ca9ef))
* folder conversion without single quotes ([96a6b47](96a6b47))
* github pages deployment ([a9f08c8](a9f08c8))
* github pages deployment ([315c0ff](315c0ff))
* GmailProcessor.runWithConfigJson() ([93446d6](93446d6))
* init e2e tests ([28d974b](28d974b))
* init e2e tests ([9e00810](9e00810))
* logging for generated examples ([9229a3f](9229a3f))
* old reference to processedLabel ([3f7b2ee](3f7b2ee))
* pages deployment + coverage ([506dbb2](506dbb2))
* regression error + example scopes ([73e87de](73e87de))
* release command in workflow ([203a66c](203a66c))
* releases ci steps ([095e5a3](095e5a3))
* remaining references to .clasp.json ([b4f5561](b4f5561))
* remove old action refs + styling ([30b450b](30b450b))
* remove performance.now() ([f18f93f](f18f93f))
* remove test exit in clasp.sh ([a50f4aa](a50f4aa))
* remove unused rootTitle ([72385cb](72385cb))
* remove workflow permission declaration ([7e726ee](7e726ee))
* revert name of attachment.contentType(Regex) ([95b5297](95b5297))
* static action method handling ([999091e](999091e))
* store email PDF in same folder as attachments ([74a439d](74a439d)), closes [#36](#36)
* syntax error ([08af1ef](08af1ef))
* test errors due to buildMatchConfig changes ([df97b68](df97b68))
* timezone in some ([e9bc0d0](e9bc0d0))
* trailing hash in schema reference ([a2749f8](a2749f8))
* typo `messgage.matched` -> `message.matched` ([e97d909](e97d909))
* use logger passed ([4d00ccf](4d00ccf))
* wrong branch in .releaserc ([de7b9ef](de7b9ef))
* wrong start index of gmail app search ([a1b3f34](a1b3f34))

### Code Refactoring

* rename gmail2gdrive -> gmail-processor ([525e3db](525e3db))

### Features

* add action handling to processors ([a121889](a121889))
* add compatibility for %filename pattern ([e3bb858](e3bb858)), closes [#50](#50)
* add conflict strategies backup/update, tests ([d370a8e](d370a8e))
* add date filter at rule level ([#60](#60)) ([ecdb2ea](ecdb2ea))
* add decorator-driven action registry ([584ed75](584ed75))
* add dryrun mode ([c70c44b](c70c44b))
* add github pages publishing ([5d4ff4d](5d4ff4d))
* add global actions ([96c0707](96c0707))
* add handler name config ([30920ab](30920ab))
* add message date matching ([34dba8c](34dba8c))
* add meta infos + docs generation ([f080d44](f080d44))
* add option for using a rule counter with filenameTo ([#58](#58)) ([333212e](333212e))
* add possibility to store each individual email as PDF ([#73](#73)) ([88f3c34](88f3c34))
* add processing context substitution ([39c0e5b](39c0e5b))
* add processing stages to actions (pre/post) ([650654d](650654d))
* add regex matching to thread config ([8bf43df](8bf43df))
* add schema validation, refactor generation ([7937fb3](7937fb3))
* add sender domain to substitution map ([3e657ec](3e657ec))
* add SpreadsheetAdapter for logSheet handling ([bf518c1](bf518c1)), closes [#37](#37)
* add substitution to match config strings ([b5ea2be](b5ea2be))
* add support for Shared Drives ([#72](#72)) ([e2adc68](e2adc68))
* add thread matching ([740fab3](740fab3))
* allow subject with '%s' in folder name ([#48](#48)) ([957621b](957621b))
* Initial draft of re-implementation for v2 ([91c293b](91c293b))
* more global configs + main processing stage ([791d1cb](791d1cb))
* store single message as PDF to GMail ([c9abd9c](c9abd9c))
* streamline run methods ([9dd733c](9dd733c))
* substitute user info + variables ([1d67c13](1d67c13))

### BREAKING CHANGES

* marker to trigger major version increment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants