<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to back up your Gmail on Linux in four easy steps</title>
	<atom:link href="http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/</link>
	<description>neat fun stuff</description>
	<lastBuildDate>Mon, 20 May 2013 10:38:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Fred</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-1348596</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Sun, 15 Apr 2012 02:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-1348596</guid>
		<description><![CDATA[Would this include attachments and sent mail as well?  WOuld it retain archive statuses and (nested) labels with special-chars in names? Chats?

Thanks for this.]]></description>
		<content:encoded><![CDATA[<p>Would this include attachments and sent mail as well?  WOuld it retain archive statuses and (nested) labels with special-chars in names? Chats?</p>
<p>Thanks for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Bogucki</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-909597</link>
		<dc:creator>Michael Bogucki</dc:creator>
		<pubDate>Thu, 15 Sep 2011 15:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-909597</guid>
		<description><![CDATA[Hello,
I was wondering if it&#039;s possible to have getmail retrieve several folders from gmail, but to keep them seperate.

For example: 
I&#039;ve got two folders in gmail called: Shipping and Ack&quot;

So I&#039;m assuming I&#039;d setup mailboxes like this:
mailboxes=( &quot;[Gmail]/Shipping&quot;, &quot;[Gmail]/Ack&quot; )

But I&#039;m not sure how to setup the destination so that Shipping and Ack are separate from each other. 

Is this even possible?

Thank you.

--Mike]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
I was wondering if it&#8217;s possible to have getmail retrieve several folders from gmail, but to keep them seperate.</p>
<p>For example:<br />
I&#8217;ve got two folders in gmail called: Shipping and Ack&#8221;</p>
<p>So I&#8217;m assuming I&#8217;d setup mailboxes like this:<br />
mailboxes=( &#8220;[Gmail]/Shipping&#8221;, &#8220;[Gmail]/Ack&#8221; )</p>
<p>But I&#8217;m not sure how to setup the destination so that Shipping and Ack are separate from each other. </p>
<p>Is this even possible?</p>
<p>Thank you.</p>
<p>&#8211;Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Durbin</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-892666</link>
		<dc:creator>Philip Durbin</dc:creator>
		<pubDate>Wed, 31 Aug 2011 12:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-892666</guid>
		<description><![CDATA[Thank you, Matt, for a great blog post.

I just set up getmail with POP as described in the original post and successfully backed up all my mail for two Gmail accounts, but I&#039;m confused by the message counts I am seeing in the Gmail web interface versus mutt.

Gmail account 1: 3930 messages when I click &quot;Inbox&quot; in the web interface, 5410 when I click &quot;All Mail&quot; in the web interface, 4523 when I open the mbox file in mutt.  The web interface reports 686 MB total; mutt shows 448 MB.

Gmail account 2: 1861 messages when I click &quot;Inbox&quot; in the web interface, 9063 when I click &quot;All Mail&quot; in the web interface, 8198 when I open the mbox file in mutt.  The web interface reports 135 MB total; mutt shows 122 MB.

(To look at the mbox in mutt I&#039;m running `mutt -R -f /path/to/foo.mbox`)

Obviously, the message counts from mutt are closer to the &quot;All Mail&quot; counts than the &quot;Inbox&quot; counts, and I feel like this backup is good enough, but can anyone explain the discrepancy?]]></description>
		<content:encoded><![CDATA[<p>Thank you, Matt, for a great blog post.</p>
<p>I just set up getmail with POP as described in the original post and successfully backed up all my mail for two Gmail accounts, but I&#8217;m confused by the message counts I am seeing in the Gmail web interface versus mutt.</p>
<p>Gmail account 1: 3930 messages when I click &#8220;Inbox&#8221; in the web interface, 5410 when I click &#8220;All Mail&#8221; in the web interface, 4523 when I open the mbox file in mutt.  The web interface reports 686 MB total; mutt shows 448 MB.</p>
<p>Gmail account 2: 1861 messages when I click &#8220;Inbox&#8221; in the web interface, 9063 when I click &#8220;All Mail&#8221; in the web interface, 8198 when I open the mbox file in mutt.  The web interface reports 135 MB total; mutt shows 122 MB.</p>
<p>(To look at the mbox in mutt I&#8217;m running `mutt -R -f /path/to/foo.mbox`)</p>
<p>Obviously, the message counts from mutt are closer to the &#8220;All Mail&#8221; counts than the &#8220;Inbox&#8221; counts, and I feel like this backup is good enough, but can anyone explain the discrepancy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-844055</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 17 Jul 2011 04:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-844055</guid>
		<description><![CDATA[Restoring the backed-up mail to an IMAP server will be different for each type of IMAP server. What I&#039;ve done in the past is set up a mail client like Thunderbird, point it to the backed-up mail archive, and created a second account for the new IMAP server. Then I just copied the backed-up mail from the backup folder to the new IMAP account.]]></description>
		<content:encoded><![CDATA[<p>Restoring the backed-up mail to an IMAP server will be different for each type of IMAP server. What I&#8217;ve done in the past is set up a mail client like Thunderbird, point it to the backed-up mail archive, and created a second account for the new IMAP server. Then I just copied the backed-up mail from the backup folder to the new IMAP account.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Woodcroft</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-788969</link>
		<dc:creator>Ben Woodcroft</dc:creator>
		<pubDate>Tue, 10 May 2011 00:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-788969</guid>
		<description><![CDATA[Hi,

Thanks for writing this useful tool. I noticed that you suggest people might put their username in the &quot;getmail.gmail&quot; file. However, this seems rather insecure to me. As it stands, any other user on the computer will be able to read that file. At the very least I&#039;d say don&#039;t give anyone permissions except yourself:

$ chmod go-rwx ~/.getmail/getmail.gmail

But even then anyone with root privileges, or anyone who can boot your machine into a root prompt (no password required), will be able to read your password.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for writing this useful tool. I noticed that you suggest people might put their username in the &#8220;getmail.gmail&#8221; file. However, this seems rather insecure to me. As it stands, any other user on the computer will be able to read that file. At the very least I&#8217;d say don&#8217;t give anyone permissions except yourself:</p>
<p>$ chmod go-rwx ~/.getmail/getmail.gmail</p>
<p>But even then anyone with root privileges, or anyone who can boot your machine into a root prompt (no password required), will be able to read your password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafal</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-787232</link>
		<dc:creator>Rafal</dc:creator>
		<pubDate>Thu, 05 May 2011 14:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-787232</guid>
		<description><![CDATA[Ok, You all post how to backup. Some guys ask how to RESTORE this mail to imap server. Could You write something about this?]]></description>
		<content:encoded><![CDATA[<p>Ok, You all post how to backup. Some guys ask how to RESTORE this mail to imap server. Could You write something about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-784578</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 30 Apr 2011 20:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-784578</guid>
		<description><![CDATA[I don&#039;t know too much about what I&#039;m doing but I used this bash script:
&lt;code&gt;
#!/bin/bash

i=&quot;1&quot;

while [ $i -gt 0 ]
do
getmail -r /home/david/.getmail/getmail.gmail
done
&lt;/code&gt;

of course it&#039;s going to eventually start to error out... but that should be after it runs a few hundred times :-)]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know too much about what I&#8217;m doing but I used this bash script:<br />
<code><br />
#!/bin/bash</p>
<p>i="1"</p>
<p>while [ $i -gt 0 ]<br />
do<br />
getmail -r /home/david/.getmail/getmail.gmail<br />
done<br />
</code></p>
<p>of course it&#8217;s going to eventually start to error out&#8230; but that should be after it runs a few hundred times <img src='http://www.mattcutts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Ferrett</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-756383</link>
		<dc:creator>Paul Ferrett</dc:creator>
		<pubDate>Thu, 31 Mar 2011 02:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-756383</guid>
		<description><![CDATA[Thanks for the post :)

When doing my initial gmail import there were thousands of emails to download initially, and I didn&#039;t want to sit there and keep running the import script, I also didn&#039;t know exactly how long it would take for each run to time a cron (gmail seems to send back anything from 99 to 2k at a time).

So I modified your shell script to create a file lock to avoid the cron &quot;running over itself&quot;:

&lt;code&gt;
#!/bin/bash
if [ -f /tmp/fetch-gmail.pid ]; then
        echo &#039;Already running - exiting;&#039;;
        exit;
fi
touch /tmp/fetch-gmail.pid
/usr/bin/getmail -q -r /home/bob/.getmail/getmail.gmail
rm -f /tmp/fetch-gmail.pid
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Thanks for the post <img src='http://www.mattcutts.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>When doing my initial gmail import there were thousands of emails to download initially, and I didn&#8217;t want to sit there and keep running the import script, I also didn&#8217;t know exactly how long it would take for each run to time a cron (gmail seems to send back anything from 99 to 2k at a time).</p>
<p>So I modified your shell script to create a file lock to avoid the cron &#8220;running over itself&#8221;:</p>
<p><code><br />
#!/bin/bash<br />
if [ -f /tmp/fetch-gmail.pid ]; then<br />
        echo 'Already running - exiting;';<br />
        exit;<br />
fi<br />
touch /tmp/fetch-gmail.pid<br />
/usr/bin/getmail -q -r /home/bob/.getmail/getmail.gmail<br />
rm -f /tmp/fetch-gmail.pid<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-730187</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 03 Mar 2011 22:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-730187</guid>
		<description><![CDATA[This is the getmail.gmail I use, and it works well.

You have to run it multiple times initially (can use &quot;for {1..n}; do getmail -r ~/.getmail/getmail.gmail; done&quot;) where &quot;n&quot; is the number of thousand emails you have (rounded up).  

From then on (eg weekly) 1000 is probably enough that running it once will suffice. I use maildir for storage as it seems to be more reliable and you don&#039;t run into locking problems, dealing with a massive file, etc.  

You need to create the folder and have it writeable, along with three subfolders: cur, new and tmp.

&lt;code&gt;
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = xxx
password = xxx
mailboxes = ( &quot;[Gmail]/All Mail&quot;, &quot;[Gmail]/Sent Mail&quot;, &quot;[Gmail]/Drafts&quot; )

[destination]
type = Maildir
path = /home/dan/gmail-archive/maildir/

[options]
# print messages about each action (verbose = 2)
# Other options:
# 0 prints only warnings and errors
# 1 prints messages about retrieving and deleting messages only
verbose = 2
message_log = ~/.getmail/gmail.log
read_all = False
max_messages_per_session = 1000
received = false
delete = false
&lt;/code&gt;

Hope this helps someone.  Still has the unfortunate side effect of flagging mail as read.  Other IMAP clients manage this trick, not sure why getmail doesn&#039;t.]]></description>
		<content:encoded><![CDATA[<p>This is the getmail.gmail I use, and it works well.</p>
<p>You have to run it multiple times initially (can use &#8220;for {1..n}; do getmail -r ~/.getmail/getmail.gmail; done&#8221;) where &#8220;n&#8221; is the number of thousand emails you have (rounded up).  </p>
<p>From then on (eg weekly) 1000 is probably enough that running it once will suffice. I use maildir for storage as it seems to be more reliable and you don&#8217;t run into locking problems, dealing with a massive file, etc.  </p>
<p>You need to create the folder and have it writeable, along with three subfolders: cur, new and tmp.</p>
<p><code><br />
[retriever]<br />
type = SimpleIMAPSSLRetriever<br />
server = imap.gmail.com<br />
username = xxx<br />
password = xxx<br />
mailboxes = ( "[Gmail]/All Mail", "[Gmail]/Sent Mail", "[Gmail]/Drafts" )</p>
<p>[destination]<br />
type = Maildir<br />
path = /home/dan/gmail-archive/maildir/</p>
<p>[options]<br />
# print messages about each action (verbose = 2)<br />
# Other options:<br />
# 0 prints only warnings and errors<br />
# 1 prints messages about retrieving and deleting messages only<br />
verbose = 2<br />
message_log = ~/.getmail/gmail.log<br />
read_all = False<br />
max_messages_per_session = 1000<br />
received = false<br />
delete = false<br />
</code></p>
<p>Hope this helps someone.  Still has the unfortunate side effect of flagging mail as read.  Other IMAP clients manage this trick, not sure why getmail doesn&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dushyant Kumar Masta</title>
		<link>http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-690272</link>
		<dc:creator>Dushyant Kumar Masta</dc:creator>
		<pubDate>Tue, 28 Dec 2010 08:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/#comment-690272</guid>
		<description><![CDATA[Hello guys,

Here is a simple solution for backing up your mail through Beyond Inbox http://www.beyondinbox.com/ ,  which let you keep your email organized and inbox clean so that you can find a message when you need it. At the same time, you also need to make sure that you archive and backup your email to prevent the loss in situations like accidental loss of data from email servers, hacking of account, forget password, over size inbox or unpredictable scenarios.
There are five basic functions that we all need to perform in order to manage and safeguard our email- backup, restore, archive, transfer and organize the data. Beyond Inbox can help you perform all of these in a very efficient and easy way.
Using Beyond Inbox, you can backup, restore, archive, transfer or organize email from any IMAP enabled email account.

Beyond Inbox is available in two different flavors i.e. an easy User Interface and Command line interface.

You can use this tool on Windows, Linux as well as Mac OSX. Click here to download http://www.beyondinbox.com/beyondinbox-download.html

You can easily install beyond Inbox. See the link http://www.beyondinbox.com/documentation/mail-backup--how-to-install-beyondinbox.html]]></description>
		<content:encoded><![CDATA[<p>Hello guys,</p>
<p>Here is a simple solution for backing up your mail through Beyond Inbox <a href="http://www.beyondinbox.com/" rel="nofollow">http://www.beyondinbox.com/</a> ,  which let you keep your email organized and inbox clean so that you can find a message when you need it. At the same time, you also need to make sure that you archive and backup your email to prevent the loss in situations like accidental loss of data from email servers, hacking of account, forget password, over size inbox or unpredictable scenarios.<br />
There are five basic functions that we all need to perform in order to manage and safeguard our email- backup, restore, archive, transfer and organize the data. Beyond Inbox can help you perform all of these in a very efficient and easy way.<br />
Using Beyond Inbox, you can backup, restore, archive, transfer or organize email from any IMAP enabled email account.</p>
<p>Beyond Inbox is available in two different flavors i.e. an easy User Interface and Command line interface.</p>
<p>You can use this tool on Windows, Linux as well as Mac OSX. Click here to download <a href="http://www.beyondinbox.com/beyondinbox-download.html" rel="nofollow">http://www.beyondinbox.com/beyondinbox-download.html</a></p>
<p>You can easily install beyond Inbox. See the link <a href="http://www.beyondinbox.com/documentation/mail-backup--how-to-install-beyondinbox.html" rel="nofollow">http://www.beyondinbox.com/documentation/mail-backup&#8211;how-to-install-beyondinbox.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using n/a

 Served from: www.mattcutts.com @ 2013-05-20 15:32:22 by W3 Total Cache -->