Hello, On Monday 06 October 2008 23:20, Ben Franksen wrote: > Sorry, forgot to add output of 'darcs --version': > > 2.1.0pre3 (+ 13 patches) > > Ben Franksen wrote: > > a small question about --sendmail-command option to darcs send command: i > > have problems with the patch bundle file: it's not there! I put this > > > > send sendmail-command darcs-sendmail %a > > > > into my ~/.darcs/defaults, and use this small test script as my > > darcs-sendmail: > > > > cp $1 huhu > > > > When running 'darcs send', I get > > > > cp: cannot stat `./darcs17568': No such file or directory > > > > darcs failed: failed to send mail to: [EMAIL PROTECTED] > > Perhaps sendmail is not configured. > > > > What am I missing? > > > > Thanks > > Ben > > _______________________________________________ > darcs-users mailing list > [email protected] > http://lists.osuosl.org/mailman/listinfo/darcs-users >
I am experimenting in much the same area at the moment. Here is what I try: > Thorkil-Naurs-Computer:~/tn/test/darcs/darcs-send/repos/repo2 thorkilnaur$ darcs send --sendmail-command='./send-mail1.sh %s %t %c %b %f %a %S %t %C %B %F %A something %<' > Creating patch to "../repo1"... > Mon Oct 6 14:57:04 CEST 2008 Thorkil Naur <[EMAIL PROTECTED]> > * Change file1.txt > Shall I send this patch? (1/1) [ynWsfvpxdaqjk], or ? for help: y > What is the target email address? some14 > cat: ./darcs245: No such file or directory > Successfully sent patch bundle to: some14. > Thorkil-Naurs-Computer:~/tn/test/darcs/darcs-send/repos/repo2 thorkilnaur$ The send-mail1.sh that gets activated is this: > #!/bin/sh > # send-mail1.sh: Test sendmail command for darcs send 1 > # 2008-Oct-06 22.25 / TN > echo $0 all: "$@" >>$0.out > echo $0: $6 contains: >>$0.out > ls -ltr >>$0.out > cat $6 >>$0.out > echo $0: End of $6 contents >>$0.out > CNT=0 > while [ "$#" != "0" ]; do > CNT=`expr $CNT + 1` > echo $0: arg[$CNT] = \"$1\" >>$0.out > shift > done > echo $0: Total $CNT arguments >>$0.out > echo $0: Input: >>$0.out > cat >>$0.out > echo $0: End of input: >>$0.out where you will notice that the cat $6 results in an error message. Finally, the output from this is: > ./send-mail1.sh all: darcs patch: Change file1.txt some14 Mon Oct 6 14:57:04 CEST 2008 Thorkil Naur <[EMAIL PROTECTED]> > * Change file1.txt Thorkil Naur <[EMAIL PROTECTED]> ./darcs245 darcs%20patch%3a%20Change%20file1.txt some14 Mon%20Oct%20%206%2014%3a57%3a04%20CEST%202008%20%20Thorkil%20Naur%20%3cnaur%40post11.tele.dk%3e%0a%20%20*%20Change%20file1.txt Thorkil%20Naur%20%3cnaur%40post11.tele.dk%3e .%2fdarcs245 something > ./send-mail1.sh: ./darcs245 contains: > total 32 > -rw-r--r-- 1 thorkiln thorkiln 67 Oct 6 14:56 file1.txt > drwxr-xr-x 3 thorkiln thorkiln 102 Oct 6 22:38 delete > -rwxr-xr-x 1 thorkiln thorkiln 434 Oct 6 23:20 send-mail1.sh > drwxr-xr-x 11 thorkiln thorkiln 374 Oct 6 23:21 _darcs > -rw-r--r-- 1 thorkiln thorkiln 471 Oct 6 23:21 send-mail1.sh.out > -rw------- 1 thorkiln thorkiln 881 Oct 6 23:21 darcs244 > ./send-mail1.sh: End of ./darcs245 contents > ./send-mail1.sh: arg[1] = "darcs patch: Change file1.txt" > ./send-mail1.sh: arg[2] = "some14" > ./send-mail1.sh: arg[3] = "" > ./send-mail1.sh: arg[4] = "Mon Oct 6 14:57:04 CEST 2008 Thorkil Naur <[EMAIL PROTECTED]> _darcs darcs244 delete file1.txt send-mail1.sh send-mail1.sh.out Change file1.txt" > ./send-mail1.sh: arg[5] = "Thorkil Naur <[EMAIL PROTECTED]>" > ./send-mail1.sh: arg[6] = "./darcs245" > ./send-mail1.sh: arg[7] = "darcs%20patch%3a%20Change%20file1.txt" > ./send-mail1.sh: arg[8] = "some14" > ./send-mail1.sh: arg[9] = "" > ./send-mail1.sh: arg[10] = "Mon%20Oct%20%206%2014%3a57%3a04%20CEST%202008%20%20Thorkil%20Naur%20%3cnaur%40post11.tele.dk%3e%0a%20%20*%20Change%20file1.txt" > ./send-mail1.sh: arg[11] = "Thorkil%20Naur%20%3cnaur%40post11.tele.dk%3e" > ./send-mail1.sh: arg[12] = ".%2fdarcs245" > ./send-mail1.sh: arg[13] = "something" > ./send-mail1.sh: Total 13 arguments > ./send-mail1.sh: Input: > To: some14 > From: Thorkil Naur <[EMAIL PROTECTED]> > Subject: darcs patch: Change file1.txt > X-Mail-Originator: Darcs Version Control System > X-Darcs-Version: 2.0.2 (release) > DarcsURL: ../repo1 > MIME-Version: 1.0 > Content-Type: multipart/mixed; boundary="=_" > > --=_ > Content-Type: text/plain > Content-Transfer-Encoding: quoted-printable > > Mon Oct 6 14:57:04 CEST 2008 Thorkil Naur <[EMAIL PROTECTED]> > * Change file1.txt > > --=_ > Content-Type: text/x-darcs-patch; name="change-file1_txt.dpatch" > Content-Transfer-Encoding: quoted-printable > Content-Description: A darcs patch for your repository! > > > New patches: > > [Change file1.txt > Thorkil Naur <[EMAIL PROTECTED]>**20081006125704] hunk ./file1.txt 2 > +More 2008-Oct-06 14.56 ... > > Context: > > [file1.txt initial 1 > Thorkil Naur <[EMAIL PROTECTED]>**20081006125526] = > > Patch bundle hash: > 77e288c849b1d20801412a57199bf71c86eed391 > > --=_-- > > . > > > ./send-mail1.sh: End of input: Note here that the ls -ltr shows darcs244 existing, but darcs245 being passed as the %a. I'd call this a bug in darcs. I would be grateful if you could confirm and report the issue to the darcs bug tracker. Thanks and best regards Thorkil _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
