2003-04-08 Jesper Harder <harder@ifa.au.dk>
+ * mm-uu.el (mm-uu-diff-groups-regexp, mm-uu-type-alist)
+ (mm-uu-diff-extract, mm-uu-diff-test): New functionality:
+ recognize diffs.
+
* mm-bodies.el (mm-decode-body): Use the supplied charset
unconditionally if `code-pages' hasn't been loaded.
(defvar mm-uu-emacs-sources-regexp "gnu\\.emacs\\.sources"
"The regexp of emacs sources groups.")
+(defcustom mm-uu-diff-groups-regexp "gnus\\.commits"
+ "*Regexp matching diff groups."
+ :type 'regexp
+ :group 'gnus-article-mime)
+
(defvar mm-uu-type-alist
'((postscript
"^%!PS-"
"^;;;?[ \t]*\\([^ \t]+\\.el\\)[ \t]+ends here"
mm-uu-emacs-sources-extract
nil
- mm-uu-emacs-sources-test)))
+ mm-uu-emacs-sources-test)
+ (diff
+ "^Index: "
+ nil
+ mm-uu-diff-extract
+ nil
+ mm-uu-diff-test)))
(defcustom mm-uu-configure-list '((shar . disabled))
"A list of mm-uu configuration.
mm-uu-emacs-sources-regexp
(string-match mm-uu-emacs-sources-regexp gnus-newsgroup-name)))
+(defun mm-uu-diff-extract ()
+ (mm-make-handle (mm-uu-copy-to-buffer start-point end-point)
+ '("text/x-patch")))
+
+(defun mm-uu-diff-test ()
+ (and gnus-newsgroup-name
+ mm-uu-diff-groups-regexp
+ (string-match mm-uu-diff-groups-regexp gnus-newsgroup-name)))
+
(defun mm-uu-forward-extract ()
(mm-make-handle (mm-uu-copy-to-buffer
(progn (goto-char start-point) (forward-line) (point))
+2003-04-08 Jesper Harder <harder@ifa.au.dk>
+
+ * emacs-mime.texi (Non-MIME): Add diff.
+
2003-04-07 Jesper Harder <harder@ifa.au.dk>
* message.texi (Security): Fix typo.
@vindex mm-uu-configure-list
Gnus also understands some non-@sc{mime} attachments, such as
-postscript, uuencode, binhex, yenc, shar, forward, gnatsweb, pgp.
-Each of these features can be disabled by add an item into
+postscript, uuencode, binhex, yenc, shar, forward, gnatsweb, pgp,
+diff. Each of these features can be disabled by add an item into
@code{mm-uu-configure-list}. For example,
@lisp
@item emacs-sources
@findex emacs-sources
+@vindex mm-uu-emacs-sources-regexp
Emacs source code. This item works only in the groups matching
@code{mm-uu-emacs-sources-regexp}.
+@item diff
+@vindex diff
+@vindex mm-uu-diff-groups-regexp
+Patches. This is intended for groups where diffs of committed files
+are automatically sent to. It only works in groups matching
+@code{mm-uu-diff-groups-regexp}.
+
@end table
@node Handles
Christopher Davis,
Andrew Eskilsson,
Kai Grossjohann,
+Kevin Greiner,
+Jesper Harder,
+Paul Jarc,
+Simon Josefsson,
David K\e,Ae\e(Bgedal,
Richard Pieri,
Fabrice Popineau,
Daniel Quinlan,
+Michael Shields,
+Reiner Steib,
Jason L. Tibbitts, III,
+Jack Vinson,
+\e$B;32,\e(B \e$B9nH~\e(B,
and
-Jack Vinson.
+Teodor Zlatanov.
\e$B$=$l$H!"0J2<$N?M$K$b%Q%C%A$d$=$NB>$N$b$N$r46<U$7$^$9\e(B:
Paul Eggert,
Mark W. Eichin,
Karl Eichwalder,
-Enami Tsugutomo, @c Enami
+\e$B1]JB!!;LCR\e(B,
Michael Ernst,
Luc Van Eycken,
Sam Falkner,
Dale Hagglund,
D. Hall,
Magnus Hammerin,
-Kenichi Handa, @c Handa
+\e$BH>ED\e(B \e$B7u0l\e(B,
Raja R. Harinath,
-Yoshiki Hayashi, @c ?
+\e$BNS\e(B \e$BK'<y\e(B,
P. E. Jareth Hein,
-Hisashige Kenji, @c Hisashige
+\e$B5W=E\e(B Kenji,
Scott Hofmann,
Marc Horowitz,
Gunnar Horrigmo,
Brad Howes,
Miguel de Icaza,
Fran\e,Ag\e(Bois Felix Ingrand,
-Tatsuya Ichikawa, @c ?
-Ishikawa Ichiro, @c Ishikawa
+\e$B;T@n\e(B \e$BC#:H\e(B,
+\e$B@P@n\e(B \e$B0lO:\e(B,
Lee Iverson,
-Iwamuro Motonori, @c Iwamuro
+\e$B4d<<\e(B \e$B85E5\e(B,
Rajappa Iyer,
Andreas Jaeger,
Adam P. Jenkins,
Randell Jesup,
Fred Johansen,
Gareth Jones,
-Simon Josefsson,
Greg Klanderman,
Karl Kleinpaste,
Michael Klingbeil,
Peter Skov Knudsen,
-Shuhei Kobayashi, @c Kobayashi
+\e$B>.NS\e(B \e$B=$J?\e(B,
Petr Konecny,
-Koseki Yoshinori, @c Koseki
+\e$B>.4X\e(B \e$B5HB'\e(B,
Thor Kristoffersen,
Jens Lautenbacher,
Martin Larose,
Timo Metzemakers,
Richard Mlynarik,
Lantz Moore,
-Morioka Tomohiko, @c Morioka
+\e$B<i2,\e(B \e$BCNI'\e(B,
Erik Toubro Nielsen,
Hrvoje Niksic,
Andy Norman,
C. R. Oldham,
Alexandre Oliva,
Ken Olstad,
-Masaharu Onishi, @c Onishi
-Hideki Ono, @c Ono
+\e$BBg@>\e(B \e$B2m@2\e(B,
+\e$B>.Ln\e(B \e$B=(5.\e(B,
Ettore Perazzoli,
William Perry,
Stephen Peters,
Paul Stevenson,
Jonas Steverud,
Paul Stodghill,
-Kiyokazu Suto, @c Suto
+\e$B?\F#\e(B \e$B@60l\e(B,
Kurt Swanson,
Samuel Tardieu,
Teddy,
-Tozawa Akihiko, @c Tozawa
+\e$B8MBt\e(B \e$B>=I'\e(B,
Chuck Thompson,
Philippe Troin,
James Troup,
Christoph Wedler,
Joe Wells,
Lee Willis,
-Katsumi Yamaoka @c Yamaoka
and
Lloyd Zusman.
Christopher Davis,
Andrew Eskilsson,
Kai Grossjohann,
+Kevin Greiner,
+Jesper Harder,
+Paul Jarc,
+Simon Josefsson,
David Kågedal,
Richard Pieri,
Fabrice Popineau,
Daniel Quinlan,
+Michael Shields,
+Reiner Steib,
Jason L. Tibbitts, III,
+Jack Vinson,
+Katsumi Yamaoka, @c Yamaoka
and
-Jack Vinson.
+Teodor Zlatanov.
Also thanks to the following for patches and stuff:
Magnus Hammerin,
Kenichi Handa, @c Handa
Raja R. Harinath,
-Yoshiki Hayashi, @c ?
+Yoshiki Hayashi, @c Hayashi
P. E. Jareth Hein,
Hisashige Kenji, @c Hisashige
Scott Hofmann,
Brad Howes,
Miguel de Icaza,
François Felix Ingrand,
-Tatsuya Ichikawa, @c ?
+Tatsuya Ichikawa, @c Ichikawa
Ishikawa Ichiro, @c Ishikawa
Lee Iverson,
Iwamuro Motonori, @c Iwamuro
Randell Jesup,
Fred Johansen,
Gareth Jones,
-Simon Josefsson,
Greg Klanderman,
Karl Kleinpaste,
Michael Klingbeil,
Christoph Wedler,
Joe Wells,
Lee Willis,
-Katsumi Yamaoka @c Yamaoka
and
Lloyd Zusman.