offlineimap/mbsync vs getmail

1,118 views
Skip to first unread message

Gour

unread,
Apr 23, 2015, 2:03:36 AM4/23/15
to mu-di...@googlegroups.com
Hello!

At the moment I use mbsync to fetch & sync my email with remote IMAP server,
but considering to possibly use getmail since it allows to fetch email,
filter it (e.g. bogofilter & clamav) and sort it.

However, it does not provide syncing capabilites, so I wonder if occasional
accessing my email via Android phone (K9 app) and reading/replying to some
messages is all I need on the phone, is there any possible disadvantage of
using getmail instead of offlineimap/mbsync with mu4e?

Sincerely,
Gour

--
Abandoning all attachment to the results of his activities,
ever satisfied and independent, he performs no fruitive action,
although engaged in all kinds of undertakings.

Alexis

unread,
Apr 23, 2015, 2:23:56 AM4/23/15
to mu-di...@googlegroups.com

Gour <go...@atmarama.net> writes:

> is there any possible disadvantage of using getmail instead of
> offlineimap/mbsync with mu4e?

As someone currently using getmail, i would be very be interested
to know this also!


Alexis.

Christian Neumann

unread,
Apr 23, 2015, 2:36:35 AM4/23/15
to mu-di...@googlegroups.com

Am Thu, 23.04.2015 um 08:23 Uhr, schrieb Alexis <flexi...@gmail.com>:
> As someone currently using getmail, i would be very be interested
> to know this also!

I've always been using getmail with mu, and there has never been any
problem. mu should not care about which tool you use to create/update
your maildir, and I guess it doesn't.

Best,
Christian

Gour

unread,
Apr 23, 2015, 3:01:23 AM4/23/15
to mu-di...@googlegroups.com

Alexis <flexi...@gmail.com> writes:

> As someone currently using getmail, i would be very be interested
> to know this also!

Do you also access your IMAP email via some smart phone?

Gour

unread,
Apr 23, 2015, 3:03:56 AM4/23/15
to mu-di...@googlegroups.com

Christian Neumann <c...@2foo.net> writes:

> I've always been using getmail with mu, and there has never been any
> problem.

I thought that offlineimap/mbsync is maybe better option due to their syncing
capabilities and even wanted to use getmail along with mbsync in order to
filter my mail, but maybe it's just overkill and getmaill can accomplish
everything.

> mu should not care about which tool you use to create/update your maildir,
> and I guess it doesn't.

Yeah, I guess so.

Alexis

unread,
Apr 23, 2015, 3:37:51 AM4/23/15
to mu-di...@googlegroups.com

Gour <go...@atmarama.net> writes:

> Do you also access your IMAP email via some smart phone?

No, i don't use IMAP; i download all my email via POP3. (If i want
to access that email from my phone, i use ConnectBot to SSH in to
the relevant machine, and start an emacsclient session within
that.)

i've been successfully using getmail for several years now, but
would certainly be interested in knowing about any particular
issues others have had when using it ....


Alexis.

Gour

unread,
Apr 23, 2015, 10:09:03 AM4/23/15
to mu-di...@googlegroups.com

Alexis <flexi...@gmail.com> writes:

> i've been successfully using getmail for several years now, but
> would certainly be interested in knowing about any particular
> issues others have had when using it ....

In the past when I was using getmail I was invoking it via cronjob, but now I
wonder how you do it, iow. how does your 'mu4e-get-mail-command' look like?


Sincerely,
Gour

--
As the embodied soul continuously passes, in this body,
from boyhood to youth to old age, the soul similarly passes
into another body at death. A sober person is not bewildered
by such a change.

Alexis

unread,
Apr 23, 2015, 9:45:21 PM4/23/15
to mu-di...@googlegroups.com

Gour <go...@atmarama.net> writes:

> In the past when I was using getmail I was invoking it via
> cronjob, but now I wonder how you do it, iow. how does your
> 'mu4e-get-mail-command' look like?

i just use cronjobs also - i have several accounts, and the
higher-volume accounts get checked more regularly than the
lower-volume accounts. So `mu4e-get-mail-command` is set to
"true". :-)

However, when i occasionally want to check an account manually, i
use this:

(defun get-mail (account)
"Run `getmail' for account specified by ACCOUNT."
(interactive
(list
(completing-read
"Email account? " (my-filter
#'(lambda (e)
(if (string-match "\.gm$" e)
e))
(directory-files "~/.getmail/")))))
(let ((b (generate-new-buffer " *getmail*")))
(start-process-shell-command "getmail" b (concat
"/usr/bin/getmail -r " account)) (set-process-sentinel
(get-process "getmail") #'(lambda (process event)
(with-current-buffer " *getmail*"
(goto-char (point-min)) (re-search-forward "^
\\([[:digit:]].+\\)") (message (match-string 1))
(kill-buffer " *getmail*") (mu4e-update-index)
(save-window-excursion
(mu4e-headers-rerun-search)))))))

(Each of my getmail account configs ends in a '.gm' extension.)

Here's my definition of `my-filter` (which i'm guessing could be
more elegant!):

(defun my-filter (f l &optional r)
"Filter a list L using predicate function F, returning
a list of list elements for which F is true."
(let ((a (car-safe l)))
(if a
(if (funcall f a)
(my-filter
f (cdr l) (if r
(append r (list a))
(list a)))
(my-filter
f (cdr l) (if r
r)))
r)))


Alexis.

Gour

unread,
Apr 26, 2015, 11:10:20 AM4/26/15
to mu-di...@googlegroups.com

Alexis <flexi...@gmail.com> writes:

> i just use cronjobs also - i have several accounts, and the
> higher-volume accounts get checked more regularly than the
> lower-volume accounts. So `mu4e-get-mail-command` is set to
> "true". :-)

Thanks - I did the same, just have some flock-related problem, but posted to
the getmail list.


> However, when i occasionally want to check an account manually, i
> use this:

[...]

I'll save for the reference. ;)


Sincerely,
Gour

--
A person is said to be established in self-realization and is called a yogī
[or mystic] when he is fully satisfied by virtue of acquired knowledge and
realization.

Reply all
Reply to author
Forward
0 new messages