summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
COUDER Christian [Fri, 22 Apr 2011 13:44:10 +0000 (15:44 +0200)]
mail-commits: use SMTP user and password if any
Signed-off-by: Christian Couder <christian.couder@murex.com>
COUDER Christian [Fri, 22 Apr 2011 13:44:09 +0000 (15:44 +0200)]
mail-commits: use a dictionnary for smtp information
Signed-off-by: Christian Couder <christian.couder@murex.com>
COUDER Christian [Fri, 22 Apr 2011 13:44:08 +0000 (15:44 +0200)]
mail-commits: refactor get otions into get_config_option()
Signed-off-by: Christian Couder <christian.couder@murex.com>
COUDER Christian [Fri, 22 Apr 2011 13:44:07 +0000 (15:44 +0200)]
mail-commits: add smtp_port global when using a specificport
Signed-off-by: Christian Couder <christian.couder@murex.com>
Julian Phillips [Sat, 23 Apr 2011 11:42:13 +0000 (12:42 +0100)]
Don't use \n or \r in filenames ...
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 25 Aug 2009 18:29:13 +0000 (19:29 +0100)]
Add GIT-VERSION-GEN from git
Borrow GIT-VERSION-GEN from git, so that the Makefile will work (as it
is written expecting to be in git's contrib area ;)).
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 25 Aug 2009 18:26:43 +0000 (19:26 +0100)]
Mirror git rep layout
Hopefully this script will be accepted into git contrib. So move it
so that the layout matches.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 24 Aug 2009 23:47:17 +0000 (00:47 +0100)]
Add a license (and copyright) statement
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 24 Aug 2009 23:40:03 +0000 (00:40 +0100)]
Add a Makefile for installing git-mail-commits
Add a Makefile that will install git-mail-commits into the git
exec-dir, based on the main git Makefile. Also use the mechanism from
the git Makefile to get the git version number into the script rather
than keeping it's own versioning.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 23 Aug 2009 17:58:46 +0000 (18:58 +0100)]
Load SMTP server from config
Rather than using a hard-coded SMTP server, read it from the git
config instead.
Also a few misc code tidy ups, and catch failure to connect to the
SMTP server and print an error message.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 3 Aug 2009 08:53:36 +0000 (09:53 +0100)]
remove debug
There was a debug statement left in the code for detecting other
authors - remove it.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 27 Jul 2009 07:09:59 +0000 (08:09 +0100)]
Try to preserve Authorship
When sending patches that were actually created by someone else, try
to preserve authorship by placing a From: line into the body of the
message, which is understood by the git mail applying tools.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Fri, 5 Jun 2009 08:44:21 +0000 (09:44 +0100)]
Add options to manipulate the subject prefix
Add some options that allow easy manipulation of the subject prefix
for different reasons, primarily:
- new version of a patch series
- indicate rfc nature of patch series
- indicate that the patch series is for a particular target (e.g.
JGIT on git mailing list)
Also allow the subject prefix to be specified manually.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 17 May 2009 18:25:35 +0000 (19:25 +0100)]
Bump revision
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 17 May 2009 18:24:44 +0000 (19:24 +0100)]
Fix message ID for cover message
An earlier change broke the message ID generation for the cover
message.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 17 May 2009 18:23:35 +0000 (19:23 +0100)]
Improve the cover message error handling
The warning about unchanged subject didn't stand out enough, and the
unchanged body error didn't trigger due to only stripping one side.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 17 May 2009 18:05:17 +0000 (19:05 +0100)]
Downgrade unchanged subject to warning
Just because the cover message subject hasn't been updated, doesn't
mean we should abort everything and give up.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 11 May 2009 20:54:58 +0000 (21:54 +0100)]
add --out-and-send option
Add a command-line option that will save the messages but still send
them - in a way, combining the -o and -i options but without the
option of editing the messages before they are sent.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 11 May 2009 20:49:47 +0000 (21:49 +0100)]
rework cover letter loading a bit
Now we override a lot more of the headers when loading a cover letter.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Mon, 11 May 2009 20:32:26 +0000 (21:32 +0100)]
Fix minor bug with save_patches
If there is no cover letter then we should number the saved patches
from 0001, not from 0.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 26 Apr 2009 23:20:47 +0000 (00:20 +0100)]
don't send mails if using -o DIR option
If we have been to told to save files to a directory using -o, then
don't send the mails.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 26 Apr 2009 23:12:37 +0000 (00:12 +0100)]
fix cover message behaviour
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 26 Apr 2009 22:57:12 +0000 (23:57 +0100)]
Make cover message behaviour simpler
This makes the behaviour of cover message handling simpler. Use -c to
edit the message, and -C to use the given filename. In addition all
the patches can now be saved using the -o option, and the saved files
can later be sent with -i.
Also misc tidy-ups.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 19 Apr 2009 15:31:30 +0000 (16:31 +0100)]
set date for intro message after composition
If you spend a long time over the composition of the cover letter,
then date will be a large amount in the past compared to the patch
mails.
Also, update the Date in an intro message read from a file.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 19 Apr 2009 12:35:10 +0000 (13:35 +0100)]
hopefully fix error on sending cover letter
It's possible that some mail servers don't like have an empty CC/BCC -
so don't include the CC/BCC lines unless needed.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 13:29:33 +0000 (14:29 +0100)]
Use flat threading rather than deep threading
There seems to be a preference for flat threading these days.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:48:58 +0000 (13:48 +0100)]
Bump version, and tell optparse what the version is
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:47:25 +0000 (13:47 +0100)]
Add option to keep intro message
Add an option to keep an intro message that has been generated.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:37:37 +0000 (13:37 +0100)]
Print CC and BCC addresses in addition to to addresses
When we print out the to address at the beginning also print the CC
and BCC addresses.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:34:03 +0000 (13:34 +0100)]
Use --cover-letter option to format-patch to generate intro msg
Rather than construct it manually, let format-patch generate the intro
message for us. This has the advantage of including a shortlog and
diffstat.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:13:57 +0000 (13:13 +0100)]
Use the current date for patches
git-format-patch produces mail messages with the date set to the
commit timestamp. git-send-email then replaces this with the current
date when sending the messages (incrementing the seconds for each
patch sent, such that the last message sent is at the current time).
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Tue, 7 Apr 2009 12:08:32 +0000 (13:08 +0100)]
Add support for bcc
Also put the cc and bcc addresses into the intro message.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sat, 4 Apr 2009 22:22:37 +0000 (23:22 +0100)]
For the intro, create the message and then edit it
This is a more user friendly version, that makes it easier for the
user to see what they need to edit than simply presenting with a blank
document to edit. It also prepends "[PATCH 0/n]" if the message read
from a -I <file> doesn't already have one at the start of it's
subject.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Julian Phillips [Sun, 23 Aug 2009 19:15:31 +0000 (20:15 +0100)]
Create a script for emailing out git commits
This is a new script that can replace the format-patch/send-email
dance for simple cases.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>