[mew-win32 04361] Re: 拡張子

INOUE Tomohiro <[email protected]>
Newsgroups gmane.mail.mew.windows
Message-ID <[email protected]>
井上です。

wdsgrep をちょっと修正して Mew 5 で動くようにしました…
つもりでしたが、結論から書くとまだうまく動いていません。

Mew 5.0.50 (CVS) で試しながら気になったことをいくつか。

1. mewl の -i の動作が拡張子に対応できていないような気がします。
wdsgrep -m -p $HOME/Mail -s -q query で多数ヒットする場合でも、
'k /' した時には何も表示されません。

2. 最新の cygwin だと mew/bin 以下のバイナリが make できないようです。
getline() の名前が被ってるのが原因のようで、安直に添付パッチのように名
前を変えたら make できました。


それと、http://www.mew.org のトップがだいぶ前から「サーバの置き換え作
業」中となっています。とりあえず ML のアーカイブは更新されていないのは
もったいない気がします。


-- 井上 知洋
http://ext.noue.org/ext/wdsgrep
# 一応新しいバージョンも置いてあります
mew-bin.diff (text/plain, 2.2 KB)
Index: incm.c
===================================================================
RCS file: /cvsmew/mew/bin/incm.c,v
retrieving revision 1.35
diff -c -r1.35 incm.c
*** incm.c	30 Mar 2006 07:46:32 -0000	1.35
--- incm.c	30 Mar 2006 09:01:40 -0000
***************
*** 686,692 ****
  		warning("fdopen(%s) for read", Mbox);  goto rerr;
  	}
  
! 	while ((ln = getline(srcfp)) != NULL) {
  		if (Exit)
  			goto werr;
  		switch (state) {
--- 686,692 ----
  		warning("fdopen(%s) for read", Mbox);  goto rerr;
  	}
  
! 	while ((ln = Getline(srcfp)) != NULL) {
  		if (Exit)
  			goto werr;
  		switch (state) {
***************
*** 805,811 ****
  	if ((dstfp = open_new_inbox_file(&seq, inboxfile)) == NULL)
  		goto rerr;
  
! 	while ((ln = getline(srcfp)) != NULL) {
  		if (Exit)
  			goto werr;
  		if (fputs(ln, dstfp) == EOF) {
--- 805,811 ----
  	if ((dstfp = open_new_inbox_file(&seq, inboxfile)) == NULL)
  		goto rerr;
  
! 	while ((ln = Getline(srcfp)) != NULL) {
  		if (Exit)
  			goto werr;
  		if (fputs(ln, dstfp) == EOF) {
Index: mew.h
===================================================================
RCS file: /cvsmew/mew/bin/mew.h,v
retrieving revision 1.10
diff -c -r1.10 mew.h
*** mew.h	30 Mar 2006 06:44:44 -0000	1.10
--- mew.h	30 Mar 2006 09:01:40 -0000
***************
*** 139,145 ****
  public int search_string(char *, char *, int);
  public void pattern_init(char *);
  public int pattern_match(void);
! public char *getline(FILE *);
  public int Getopt(int, char **, const char *);
  
  extern char *warn_prog;
--- 139,145 ----
  public int search_string(char *, char *, int);
  public void pattern_init(char *);
  public int pattern_match(void);
! public char *Getline(FILE *);
  public int Getopt(int, char **, const char *);
  
  extern char *warn_prog;
Index: utils.c
===================================================================
RCS file: /cvsmew/mew/bin/utils.c,v
retrieving revision 1.15
diff -c -r1.15 utils.c
*** utils.c	27 Mar 2006 07:34:59 -0000	1.15
--- utils.c	30 Mar 2006 09:01:40 -0000
***************
*** 115,121 ****
  #endif
  
  char*
! getline(FILE* fp)
  {
  	char *s, *t;
  	size_t len;
--- 115,121 ----
  #endif
  
  char*
! Getline(FILE* fp)
  {
  	char *s, *t;
  	size_t len;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.