Skip to content

Conversation

@ezequielgarcia
Copy link

I will never use append-to-file. Instead I'm using a modified version.
I believe it's more useful this way, perhaps it's useful to someone else.

Disclaimer:
I'm not a ruby developer, so I just copy-pasted code and used my brain a little.
Before this, I've never written a single ruby line.
So, feel free to modify the code...

Thanks!
Ezequiel.

This is very similar to append-to-file ',vp'.
However when saving (using ',vf') you don't need to pass a filename.
Instead, each message is saved to a different file.
Message subject is used as filename. Invalid characters get
replaced by underscores.

This is most useful for me to save patch messages.

TODO: Ask for confirmation? Ask for directory?
Use message author also as filename?

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
@danchoi
Copy link
Owner

danchoi commented Oct 20, 2012

Thanks for the patch. I'm still considering this.

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