Ng Oon-Ee | 7 Jan 2010 05:08
Picon

Thunderbird 3's new features?

Hi all,

I've been using offlineimap for quite a while, its terrific. The new
Thunderbird 3 looks pretty impressive, but quite a few of the nicer
features (like thread previews for ML threads) are only useful if its
allowed to archive offline copies of the mails. Now, since I run
offlineimap to a local maildir and share that maildir using dovecot,
that would basically be a duplication of all my mails...

Any idea what's a good way to handle this? Some way for thunderbird to
access offlineimap's data directly perhaps? Or at least to indicate that
the data needed can be loaded live from dovecot and doesn't need to be
saved on disk....

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

Tassilo Horn | 7 Jan 2010 08:39
Picon
Gravatar

Return code of offlineimap

Hi all,

first of all, let me mention that offlineimap is an incredible, central
part of my email setup.  So thanks a lot!

I use a simple shell script for getting mail.  It's basically

  offlineimap -o && notmuch new && write_some_log_entry

and a cronjob runs it every 10 minutes.  But sometimes, I'm impatient,
and call it from the cmd line.  Sometimes, I run it without knowing that
offlineimap is already running.  Then I get a message, that another
instance is already running on that metadata dir, and it finishes.  But
still, notmuch (a mail indexer) is run in that case.

So it seems, offlineimap returns a zero exit code when it cannot run.
Could that be changed to return non-zero exit codes when it couldn't run
properly, like 1 for already running, 2 for a network problem, 3 for a
crash?

This would make it easier to write shell scripts using offlineimap.

Bye,
Tassilo

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

(Continue reading)

Ng Oon-Ee | 7 Jan 2010 10:33
Picon

Re: Return code of offlineimap

On Thu, 2010-01-07 at 08:39 +0100, Tassilo Horn wrote:
> Hi all,
> 
> first of all, let me mention that offlineimap is an incredible, central
> part of my email setup.  So thanks a lot!
> 
> I use a simple shell script for getting mail.  It's basically
> 
>   offlineimap -o && notmuch new && write_some_log_entry
> 
> and a cronjob runs it every 10 minutes.  But sometimes, I'm impatient,
> and call it from the cmd line.  Sometimes, I run it without knowing that
> offlineimap is already running.  Then I get a message, that another
> instance is already running on that metadata dir, and it finishes.  But
> still, notmuch (a mail indexer) is run in that case.
> 
> So it seems, offlineimap returns a zero exit code when it cannot run.
> Could that be changed to return non-zero exit codes when it couldn't run
> properly, like 1 for already running, 2 for a network problem, 3 for a
> crash?
> 
> This would make it easier to write shell scripts using offlineimap.
> 
> Bye,
> Tassilo

I simply check using pidof /usr/bin/offlineimap

_______________________________________________
OfflineIMAP-project mailing list
(Continue reading)

Tassilo Horn | 7 Jan 2010 10:57
Picon
Gravatar

Re: Return code of offlineimap

Ng Oon-Ee <ngoonee <at> gmail.com> writes:

>> So it seems, offlineimap returns a zero exit code when it cannot run.
>> Could that be changed to return non-zero exit codes when it couldn't
>> run properly, like 1 for already running, 2 for a network problem, 3
>> for a crash?
>
> I simply check using pidof /usr/bin/offlineimap

Sure, yau can also check for the lock file in the metadata directory,
but both are more workarounds than solutions IMO.

Bye,
Tassilo

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

Ng Oon-Ee | 7 Jan 2010 11:13
Picon

Re: Return code of offlineimap

On Thu, 2010-01-07 at 10:57 +0100, Tassilo Horn wrote:
> Ng Oon-Ee <ngoonee <at> gmail.com> writes:
> 
> >> So it seems, offlineimap returns a zero exit code when it cannot run.
> >> Could that be changed to return non-zero exit codes when it couldn't
> >> run properly, like 1 for already running, 2 for a network problem, 3
> >> for a crash?
> >
> > I simply check using pidof /usr/bin/offlineimap
> 
> Sure, yau can also check for the lock file in the metadata directory,
> but both are more workarounds than solutions IMO.

Fair enough. Shouldn't be a difficult fix anyway (spoken from a position
of total ignorance of the code-base).

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

Dave Mussulman | 29 Jan 2010 17:07
Picon

X-OfflineIMAP header and Exchange

Hi gang,

I'd like to revisit the per-message dynamic header X-OfflineIMAP-xxxx
issue because now I'm getting pressure from my Exchange admins about
filling up the MAPI header tables.

I found http://software.complete.org/software/issues/show/114 but had a
few questions about the patch.

The patch only seems to address the X-OfflineIMAP-* header when it's
created.  Wouldn't a patch also need to modify wherever that header
gets parsed/read/sync'd?  Or is just changing how it's created good
enough?

What's the impact of making this change on a large existing sync'd
maildir?  Would my messages show up as new again?  Anything else to look
out for before trying the patch?

I'm running OfflineIMAP 6.1.2 because I like the IDLE feature.  The
patch looks easy enough to apply; I just don't understand what
OfflineIMAP does under the hood with that header.  My usage is pretty
vanilla - one Remote Exchange store to a local Maildir.  No other
instances or sync'ing.

Thoughts?

Dave

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap
Olivier Sirven | 30 Jan 2010 12:25
Picon

Archiving mails on my Gmail account

Hello,

I use offlineimap for quite a long time now to sync a local dovecot with
my gmail account and every thing is running just fine.

What I would like now is to easily archive my gmail mails, so to delete
them from the inbox but to keep them into "All mails" folder.

Problem is that when I delete the mail from my inbox folder on my local
dovecot server, message is moved to trash in my gmail account.

What should I do in order to just remove this message from the INBOX
without moving it to the trash folder?

For the record, my "All mails" folder is hidden from the IMAP server so
a simple copy from INBOX to this folder is not possible. Unhiding this
folder is not a solution for me as I just want to keep on my local
server unarchived mails.

Thanks for you help or ideas.

--
Olivier

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap


Gmane