-
Notifications
You must be signed in to change notification settings - Fork 12
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
Various improvements to muttdown #5
base: master
Are you sure you want to change the base?
Conversation
Add 'remove_sigil' option to also remove sigil from text/plain copy.
instead of processing it as markdown.
on some browswers.
@@ -153,6 +176,8 @@ def main(): | |||
|
|||
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, shell=False) | |||
proc.communicate(rebuilt.as_string()) | |||
proc.wait() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
communicate
waits for the process to end implicitly
return message | ||
except Exception: | ||
except Exception as e: | ||
sys.stderr.write('muttdown: '+str(e)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline here perhaps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the mega slow review; this looks like a great set of changes
can you run through flake8
and clean up style to match PEP8 (you can ignore line length warnings)
Thanks, I'll make the suggested changes, run it through flake8, and submit another pull request. |
I also have another branch that adds working unit tests (well sort of) so you might want to wait until I land #6 and then rebase on master.
…--
James Brown,
currently mobile
On May 22, 2018, at 14:13, Grant Edwards ***@***.***> wrote:
Thanks,
I'll make the suggested changes, run it through flake8, and submit another pull request.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Only remove the first occurance of the sigil, and add option to also remove it from plaintext version.
Allow main.py to run without installing (useful during development).
Add '!p' sigil that just encloses everything in pre /pre tags. Useful when you want to send ascii diagrams to HTML users.
Allow user to specify markdown extensions.
Return failure if sendmail subprocess fails.
Add 'utf8' option to tell muttdown to treat text/plain message as UTF8 when converting.