Re: Running offlineimap on startup and shutdown
- To: mutt-users@xxxxxxxx
- Subject: Re: Running offlineimap on startup and shutdown
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 19 Dec 2008 10:44:50 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=67oPOvPVvD7fGbbyxy1njtIO/Ks=; b=T/IZ 27u+uhL68dgNSAmPELdPmLQ2qDcTxtb9O+5T7jOCpv0cV1CcY9Hquz9o/6rGxyNw y233ZlJ97+cw1j2erKxLKBePpWxtBSCSlmFRXjtmsBli7+IoUn7p2U5Nt/zHkvS1 vu21P5GULu68uMo4r/7F4VPSW7eZNj8CaXosS/Q=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=hAnt50mZSBk3yCR64L6H9Ep61b1osHsaBqE1stZP6V5IXYbd9iTf6hPYbSsi0cOvvU2sV2W2ul24Gx3Vj3xY9K5j2Rs7Wg9v5DnfWlLtREEV+xtUiMk3qiBVOsdxXE2DN+FnUh1bOXfhMRKUQ+bt8rda6WUCFOm8h7qXNT0qhOE=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081219161247.GA31178@SamZwo>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081219161247.GA31178@SamZwo>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-11-30)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, December 19 at 05:12 PM, quoth Nathan Huesken:
> I use offlineimap to syncronize my mail.
Okay.
> I would like it to run when:
> - mutt starts up
> - mutt shuts down (so that changes are visible on the server)
That's probably easiest to do with your shell. If you use bash, you
could do something like this:
function mutt {
offlineimap;
mutt "$@";
offlineimap;
}
> - I press a certain key, to refresh my mailboxes
That, obviously, you'd do in mutt. Something like this:
macro index,pager B '<shell-escape>offlineimap<enter>'
~Kyle
- --
Those who agree with us may not be right, but we admire their
astuteness.
-- Cullen Hightower
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAklLz4IACgkQBkIOoMqOI17ncACgpu/FpKqYPejkCiyh4Ze4BcBZ
TbAAoI7TqYpPCdgmpqdYn1Yz6B3EYgdN
=np3F
-----END PGP SIGNATURE-----