diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-08-31 01:35:19 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-08-31 01:35:19 +0000 |
commit | 22d56155a327b9227cce18ab6a2cfa2838e0868a (patch) | |
tree | cdf49e5b52e62227c1d4ea9d24f19f566c6be957 /x11-misc/bbmail/files | |
parent | migrated from app-misc (diff) | |
download | gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.tar.gz gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.tar.bz2 gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.zip |
migrated from app-misc
Diffstat (limited to 'x11-misc/bbmail/files')
-rw-r--r-- | x11-misc/bbmail/files/bbmail-qmail.patch | 35 | ||||
-rw-r--r-- | x11-misc/bbmail/files/digest-bbmail-0.6.11 | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/x11-misc/bbmail/files/bbmail-qmail.patch b/x11-misc/bbmail/files/bbmail-qmail.patch new file mode 100644 index 000000000000..8e23afd63991 --- /dev/null +++ b/x11-misc/bbmail/files/bbmail-qmail.patch @@ -0,0 +1,35 @@ +--- bbmail-0.6.10.orig/bbmail.cc ++++ bbmail-0.6.10/bbmail.cc +@@ -55,7 +55,7 @@ + } + + bool Checkmail::CheckMHBox(int spoolno,bool force) { +- struct stat file_status; ++ struct stat file_status, maildir_status; + FILE *fp; + int num[2]={-1,-1}; + int number_of_values; +@@ -67,6 +67,23 @@ + bbtool->getResource()->spoolfile[spoolno].filename); + return(false); + } ++ ++ // check maildir new/ and cur/ directories ++ char *maildir = new ++ char[strlen (bbtool->getResource()->spoolfile[spoolno].filename) + 5]; ++ sprintf (maildir, "%s/new", bbtool->getResource()->spoolfile[spoolno].filename); ++ if (stat (maildir, &maildir_status) == 0 && ++ maildir_status.st_mtime > file_status.st_mtime) { ++ file_status.st_mtime = maildir_status.st_mtime; ++ } ++ ++ sprintf (maildir, "%s/cur", bbtool->getResource()->spoolfile[spoolno].filename); ++ if (stat (maildir, &maildir_status) == 0 && ++ maildir_status.st_mtime > file_status.st_mtime) { ++ file_status.st_mtime = maildir_status.st_mtime; ++ } ++ ++ delete [] maildir; + } + + if ((file_status.st_mtime != spoolfile[spoolno].last_mtime)&& diff --git a/x11-misc/bbmail/files/digest-bbmail-0.6.11 b/x11-misc/bbmail/files/digest-bbmail-0.6.11 new file mode 100644 index 000000000000..98e7288a0d76 --- /dev/null +++ b/x11-misc/bbmail/files/digest-bbmail-0.6.11 @@ -0,0 +1 @@ +MD5 26e442a09ceab67a39b73ad80ceafff9 bbmail-0.6.11.tar.gz |