Bug#693868: ITP: mailnag -- mail notification daemon for GNOME 3
Hi,
Vincent Cheng <Vincentc1208@gmail.com> writes:
> Mailnag checks POP3 and IMAP servers for new mail. When it finds new messsages,
> it creates a GNOME 3 notification that mentions sender and subject.
I briefly read through the source (git commit
37f1c59b573d1e261e0feea668c321f884c274e3):
- mailnag seems to store log files and pid files in
XDG_CONFIG_HOME. According to
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
this directory is for "user-specific configuration files". This fails
if I share my /home with NFS to multiple machines and login to two
different machines.
- mailnag seems to store also "mailnag.dat" to XDG_CONFIG_HOME. This
seems to contain list of known messages. Maybe this the right
directory in this case? Does this handle concurrent access in the NFS
case?
- mailnag writes its configuration file with
with open(cfg_file, 'wb') as configfile: cfg.write(configfile)
How does this behave if the disk is full? Will it truncate the
configuration file to zero size?
- imaplib2.py seems to be under python license but does not specify a
version. Some versions of python license were not compatible with GPL.
- mailnag uses
urllib2.urlopen("http://www.google.com/")
to test if internet connection works. This is a privacy issue. I don't
want my computer to report to google when I login to my desktop.
- mailnag uses "%s/.config/autostart/" % (os.path.expanduser("~/"). It
should not hardcode .config but use XDG_CONFIG_HOME?
-Timo
Reply to: