rolandrosenfeld / lbdb Goto Github PK
View Code? Open in Web Editor NEWThe Little Brother's Database
Home Page: https://www.spinnaker.de/lbdb/
License: GNU General Public License v2.0
The Little Brother's Database
Home Page: https://www.spinnaker.de/lbdb/
License: GNU General Public License v2.0
If the variable INMAIL_DB
is not set, then the default db value set in m_inmail
is not visible to lbdb-munge
. Therefore the database file just grows and grows.
It seems like lbdb-munge
should use m_inmail_db
instead of INMAIL_DB
.
As a workaround just setting INMAIL_DB
to the default value in lbdbrc
fixes the problem. But people might not be aware of this.
I am using lbdbq version 0.48.1
. But taking a look into the code in the git repo, the problem is still in the code.
hey, long-time super happy user of lbdb. i recently had to setup a new system, and my outgoing mails get truncated on them. i traced it to my sendmail wrapper which calls lbdb-fetchaddr, for years i used this:
#!/bin/bash
tee >(lbdb-fetchaddr -a)|/usr/sbin/sendmail -oem -oi $@
i minimized the testcase to this (/tmp/x is a random mail i sent):
% wc -l </tmp/x; tee >(lbdb-fetchaddr -a) </tmp/x | wc -l
1546
957
it seems the pipe is closed early and the wc at the end of the pipe gets only truncated output. if i replace the lbdb-fetchaddr with cat >/dev/null
the final wc at the end of the pipe gets the correct number of lines.
now i understand that you recommend using lbdb-fetchaddr in procmail (which is btw considered harmful[1]) for incoming mails, but i would like to avoid that since that also has unsolicited mails coming in with addresses i don't want added to my lbdb, i prefer only mails in lbdb that i sent mail to. i think i found this sendmail wrapper somewhere decades ago online[2].
i fixed/workarounded this issue by appending an extra
cat >/dev/null
at the end of lbdb-fetchaddr
. maybe this is something for you to consider as a permanent solution to this issue (which others also might encounter).
kudos for your work on lbdb!
[1] https://anarc.at/blog/2022-03-02-procmail-considered-harmful/
[2] https://www.mail-archive.com/[email protected]/msg27678.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.