On 31/05/13 12:13, Matthew Wild wrote:
> On 31 May 2013 12:04, Simon McVittie <[email protected]> wrote:
>> telepathy-gabble sets AMP attributes [...]
>> in the hope that servers will not consider them to be
>> eligible for offline storage. I don't know whether any servers actually
>> implement that, though...
> 
> Is that the only part of AMP that gabble uses?

Looks like it. Here is the extent of our AMP usage (in Wocky's
domain-specific-language for writing less painful XML literals as C
varargs):

#define GABBLE_AMP_DO_NOT_STORE_SPEC \
          '(', "amp", \
            ':', NS_AMP, \
            '(', "rule", \
              '@', "condition", "deliver-at", \
              '@', "value", "stored", \
              '@', "action", "error", \
            ')', \
            '(', "rule", \
              '@', "condition", "match-resource", \
              '@', "value", "exact", \
              '@', "action", "error", \
            ')', \
          ')'

Using AMP for this does seem like using a sledgehammer (or a bomb?) to
crack a nut. If I had some time to redesign Tubes, I'd make them a
Jingle application (and hence use IQs, which would avoid needing this).

    S

Reply via email to