From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.bugs Subject: smtpmail.el fixes for windows Date: Wed, 11 Sep 2002 07:23:51 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031721850 26438 127.0.0.1 (11 Sep 2002 05:24:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2002 05:24:10 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ozyz-0006sI-00 for ; Wed, 11 Sep 2002 07:24:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ozz6-0005BE-00; Wed, 11 Sep 2002 01:24:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17ozyq-0005B2-00 for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2002 01:24:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17ozyo-0005Ai-00 for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2002 01:23:59 -0400 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ozyn-0005Ae-00 for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2002 01:23:57 -0400 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g8B5Ntn2020121 for ; Wed, 11 Sep 2002 07:23:56 +0200 Original-To: bug-gnu-emacs@gnu.org X-Hashcash: 0:020911:bug-gnu-emacs@gnu.org:6019004b51106e74 Original-Lines: 39 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3480 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3480 Is it OK to install this? 2002-09-11 Simon Josefsson * mail/smtpmail.el (smtpmail-send-it): Don't use : in filenames (for cygwin). Convert number to string. Suggested by Andrew Senior . * time-stamp.el (time-stamp-hhmmss): New function. --- smtpmail.el.~1.47.~ 2002-09-11 06:50:53.000000000 +0200 +++ smtpmail.el 2002-09-11 07:20:56.000000000 +0200 @@ -346,10 +346,11 @@ (let* ((file-data (concat smtpmail-queue-dir (concat (time-stamp-yyyy-mm-dd) - "_" (time-stamp-hh:mm:ss) + "_" (time-stamp-hhmmss) "_" + (number-to-string (setq smtpmail-queue-counter - (1+ smtpmail-queue-counter))))) + (1+ smtpmail-queue-counter)))))) (file-elisp (concat file-data ".el")) (buffer-data (create-file-buffer file-data)) (buffer-elisp (create-file-buffer file-elisp)) --- time-stamp.el.~1.51.~ 2002-05-19 01:50:11.000000000 +0200 +++ time-stamp.el 2002-09-11 07:16:35.000000000 +0200 @@ -731,6 +731,10 @@ "Return the current time as a string in \"HH:MM:SS\" form." (format-time-string "%T")) +(defun time-stamp-hhmmss () + "Return the current time as a string in \"HHMMSS\" form." + (format-time-string "%H%M%S")) + (defun time-stamp-hhmm () "Return the current time as a string in \"HHMM\" form." (format-time-string "%H%M"))